Skip to content

Commit e9887f5

Browse files
removed hardcoded db name
1 parent 3eee3ff commit e9887f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sp_BlitzIndex.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,11 +1843,11 @@ create table #os
18431843
SUM(os.page_latch_wait_in_ms),
18441844
SUM(os.page_io_latch_wait_count),
18451845
SUM(os.page_io_latch_wait_in_ms)
1846-
,COALESCE((SELECT SUM (dict.on_disk_size / 1024.0 / 1024) FROM [DataWarehouse].sys.column_store_dictionaries dict WHERE dict.partition_id = h.partition_id),0) AS reserved_dictionary_MB
1846+
, h.reserved_dictionary_MB
18471847
from #h h
18481848
left JOIN #os as os ON
18491849
h.object_id=os.object_id and h.index_id=os.index_id and h.partition_number=os.partition_number
1850-
group by h.database_id, h.object_id, h.sname, h.index_id, h.partition_number, h.partition_id, h.row_count, h.reserved_MB, h.reserved_LOB_MB, h.reserved_row_overflow_MB, h.lock_escalation_desc, h.data_compression_desc
1850+
group by h.database_id, h.object_id, h.sname, h.index_id, h.partition_number, h.partition_id, h.row_count, h.reserved_MB, h.reserved_LOB_MB, h.reserved_row_overflow_MB, h.lock_escalation_desc, h.data_compression_desc, h.reserved_dictionary_MB
18511851

18521852
END; --End Check For @SkipPartitions = 0
18531853

0 commit comments

Comments
 (0)