Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Jon Morisi,
You can change 'limited' to 'sampled' or 'detailed' for more in depth scanning of the indexesRemove this where clause if you would like to see system DBs (Where DatabaseID > 4)Increase or decrease this where clause to adjust the number of fragments per db returned (Where i.rnk <= 25)Due to the use of DB_ID, the compatibility level all databases must be 90. INDEX_ID > 0 omits heap data Page_Count > 500 omits indexes with less than 500 pages where defragmentation would not necessarily be helpful
Where should SQL Server go in the future? Steve Jones continues to explore his wish list for future ...
Do nonclustered indexes just store pointers to clustered indexes?If so where are the included column...