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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 29, 2014, 7:09 AM EDT
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 albertRank #2,683 · 519 reputationPosted Mar 29, 2014, 8:42 AM EDT
Thanks!!