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
To Obtain Quick Counts of Rows in All Tables
Ramesh Singh
May 23
2016
Code
556
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
SELECT
T.
name
AS
TableName ,
MAX
(rowcnt)
AS
TotalRow
from
sys.tables T
JOIN
sys.sysindexes I
on
T.object_id=I.id
GROUP
BY
T.
name
SQL Server
Tables