Query to find index creation date

Posted: September 17, 2010 in Uncategorized

The following query will fetch the index creation date.

SELECT  name AS IndexName, STATS_DATE(OBJECT_ID,index_id) AS Creation_Date, OBJECT_NAME(OBJECT_ID) AS ‘TableName’
 FROM sys.indexes WHERE name like ‘%index_name%’ 
Advertisement
Comments
  1. andrey says:

    STATS_DATE() – when stats for the specified index were last updated

    so, it’s not correct script.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s