Get list of tables with total row number

Imagine that a customer calls you and complains that your application is becoming too slow.
There might be tons of reasons for that, in some cases it may be your database has grown too big.

one thing that may be useful to you is to know the size of tables, in this case we measure it by checking the number of rows, not the actual size occupied.

 

Here is the select you may want to use:

 

Posted in Code Tricks, Transact SQL and tagged , , , .

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.