Last active
August 29, 2015 14:08
-
-
Save dougajmcdonald/de9815bc9b85e5d4e223 to your computer and use it in GitHub Desktop.
When was the last Statistics Update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT 'Index Name' = i.name, 'Statistics Date' = STATS_DATE(i.object_id, i.index_id) | |
FROM sys.objects o | |
JOIN sys.indexes i ON o.name in | |
( | |
SELECT | |
name | |
--* | |
FROM | |
sys.objects | |
) | |
AND o.object_id = i.object_id | |
order by 'Statistics Date' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment