Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions Links


SQL Server DBA Jobs

How to fix SQL Index missing Statistics

02 January,2011 by Tom Collins

SQL Index Statistics missing - How can I view a list of indices and the last time the statistics were updated?

The STATS_DATE resturns the date the statistics for the specific index were last updated - the 2 arguments are table_id and index_id.The STAS_DATE could also be used in WHERE clause

The statblob column - is the Statistics binary large object(BLOB). Therefore the DATALENGTH (si.statblob) returns the number of bytes in for that column

 Use this DBA script to identify the last time statistics were updated


SELECT LastTimeUpdated = STATS_DATE(, si.indid)

,TableName = object_name(

,Name = RTRIM(

,Size = DATALENGTH (si.statblob)

FROM sysindexes si WITH (nolock)


order by LastTimeUpdated, tablename

 Read More

SQL Server - How to find the largest sql index and table size

SQL Server - Predict ALTER INDEX REORGANIZE finish time

SQL Server Update Statistics with FULL SCAN

Author: Tom Collins (


Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment on How to fix SQL Index missing Statistics | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer