TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Query To List All Tables And Rows Count In That Table
Kannadasan G
May 19
2015
Code
915
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
SELECT
[TableName] = so.
name
,
[RowCount] =
MAX
(si.
rows
)
FROM
sysobjects so,
sysindexes si
WHERE
so.xtype =
'U'
AND
si.id = OBJECT_ID(so.
name
)
GROUP
BY
so.
name
ORDER
BY
2
DESC
SQL Server
List All Tables