Index size
1 2 3 4 5 6 7 8 9 10 |
-- USE <databasename> SELECT i.[name] AS IndexName ,SUM(s.[used_page_count]) * 8 AS IndexSizeKB FROM sys.dm_db_partition_stats AS s INNER JOIN sys.indexes AS i ON s.[object_id] = i.[object_id] AND s.[index_id] = i.[index_id] -- where i.[name] like 'mix%' GROUP BY i.[name] ORDER BY IndexSizeKB Desc, i.[name] GO |
Az egyes indexek méretei. Az adott adatbázisra kell használni, szükség esetén szűrni.