Hi everybody,
I have a database with 700 tables. But I want to know wich table has the most records?
How can you do that in Microsoft SQl 2012?
Thank you.
Niels
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 29, 2014, 11:09 AM
http://blog.sqlauthority.com/2010/09/08/sql-server-find-row-count-in-table-find-largest-table-in-database-part-2/
If you're just interested in the top one then you can, of course, do:
SELECT TOP 1 ... rest of query
albert albertPosted Mar 29, 2014, 12:42 PM
Thanks!!