In this post, I am sharing one script to find Outdated Index Statistics of SQL Server.
Database Statistics are playing the main role to prepare a best query execution plan because Query Optimizer reads the Object Statistics and takes the decision accordingly.
SQL Server Statistics stores information like: object meta-data, location information, number of records.
If your Object Statistics are not updated, It impacts your query performance so You should find outdated statistics and periodically, you should update the statistics data.
Script to find Outdated Index Statistics Information:
WHERE STATS_DATE(id, indid)<=DATEADD(DAY,-1,GETDATE())
AND id IN (SELECT object_id FROM sys.tables)
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.