sync
This commit is contained in:
9
DBG - get all indexes of a tables size.sql
Normal file
9
DBG - get all indexes of a tables size.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
SELECT
|
||||
i.name AS IndexName,
|
||||
SUM(s.used_page_count) * 8 /1024 AS IndexSizeMB
|
||||
FROM sys.dm_db_partition_stats AS s
|
||||
JOIN sys.indexes AS i
|
||||
ON s.[object_id] = i.[object_id] AND s.index_id = i.index_id
|
||||
WHERE s.[object_id] = object_id('dbo.document_line')
|
||||
GROUP BY i.name
|
||||
ORDER BY i.name
|
||||
Reference in New Issue
Block a user