Last active
August 29, 2015 14:04
-
-
Save FreekPaans/2974b6501195a65ad995 to your computer and use it in GitHub Desktop.
size per index in sql azure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select o1.name table_name,o1.object_id,si.name index_name,dm.reserved_page_count * 8.0/1024 mbsize | |
from sys.objects o1 | |
join sys.dm_db_partition_stats dm on dm.object_id=o1.object_id | |
join sys.indexes si on si.object_id=o1.object_id and dm.index_id=si.index_id | |
where o1.object_id>255 | |
order by mbsize desc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment