Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Bounty
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
SQL Query To List All Tables And Rows Count In That Table
WhatsApp
Kannadasan G
May 19
2015
957
0
0
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
Up Next
SQL Query To List All Tables And Rows Count In That Table