You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
details = CAST(seg.min_data_id AS VARCHAR(20)) + '' to '' + CAST(seg.max_data_id AS VARCHAR(20)) + '', '' + CAST(CAST((seg.on_disk_size / 1024.0 / 1024) AS DECIMAL(18,0)) AS VARCHAR(20)) + '' MB'''
2977
+
details = CAST(seg.min_data_id AS VARCHAR(20)) + '' to '' + CAST(seg.max_data_id AS VARCHAR(20)) + '', '' + CAST(CAST(((COALESCE(d.on_disk_size,0) + COALESCE(seg.on_disk_size,0)) / 1024.0 / 1024) AS DECIMAL(18,0)) AS VARCHAR(20)) + '' MB'''
2978
2978
+CASEWHEN @ShowPartitionRanges =1THEN N',
2979
2979
CASE
2980
2980
WHEN pp.system_type_id IN (40, 41, 42, 43, 58, 61) THEN 126
@@ -2997,6 +2997,7 @@ BEGIN
2997
2997
LEFT OUTER JOIN '+QUOTENAME(@DatabaseName) + N'.sys.partition_range_values prvs ON prvs.function_id = pf.function_id AND prvs.boundary_id = p.partition_number - 1
2998
2998
LEFT OUTER JOIN '+QUOTENAME(@DatabaseName) +N'.sys.partition_range_values prve ON prve.function_id = pf.function_id AND prve.boundary_id = p.partition_number 'ELSEN' 'END
2999
2999
+N' LEFT OUTER JOIN '+QUOTENAME(@DatabaseName) + N'.sys.column_store_segments seg ON p.partition_id = seg.partition_id AND ic.index_column_id = seg.column_id AND rg.row_group_id = seg.segment_id
3000
+
LEFT OUTER JOIN '+QUOTENAME(@DatabaseName) + N'.sys.column_store_dictionaries d ON p.hobt_id = d.hobt_id AND c.column_id = d.column_id AND seg.secondary_dictionary_id = d.dictionary_id
3000
3001
WHERE rg.object_id = @ObjectID
3001
3002
AND rg.state IN (1, 2, 3)
3002
3003
AND c.name IN ( '+ @ColumnListWithApostrophes +N')'
@@ -3034,6 +3035,9 @@ BEGIN
3034
3035
RAISERROR(N'Done visualizing columnstore index contents.', 0,1) WITHNOWAIT;
0 commit comments