Community

Using sys.dm_db_index_physical_stats

(Hannes du Preez) Using dm_db_index_physical_stats returns size and fragmentation information for the data and indexes of the specified table or view in SQL Server.