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)