SQL Server: Find Statisitcs Information of the Database Objects

The statistics of the Database Objects are playing very important role because Query Optimizer uses these statistics to choose the best execution plan.

Query Optimizer requires different information like: number of rows, index information, change count and others.

The updated statistics always give a better performance so we should find last updated statistics time and if it is outdated, we should update statistics for that particular object.

I am going to share three different scripts to find information about the information of tables and indexes.

Using DBCC:

Using sys.stats:

Using sys.indexes:

Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.

If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.

I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.

More from dbrnd.com

Leave a Reply

Be the First to Comment!

Notify of