July, the 31 Days of SQL Server DMO’s – Day 22 (sys.dm_db_index_physical_stats)
- by Tamarick Hill
The sys.dm_db_index_physical_stats Dynamic Management Function is used to return information about the fragmentation levels, page counts, depth, number of levels, record counts, etc. about the indexes on your database instance. One row is returned for each level in a given index, which we will discuss more later. The function takes a total of 5…