Returns the date that the statistics for the specified index were last updated.
STATS_DATE(table_id, index_id)
datetime
System functions can be used in the select list, in the WHERE clause, and anywhere an expression is allowed.
This example returns the date of the last time that the statistics were updated for the specified object.
USE master
GO
SELECT 'Index Name' = i.name,
'Statistics Date' = STATS_DATE(i.id, i.indid)
FROM sysobjects o, sysindexes i
WHERE o.name = 'employee' AND o.id = i.id
GO
WHERE | System Functions |