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
WHEN format_type IS NULL THEN CAST(range_start_value AS NVARCHAR(4000))
@@ -2811,8 +2811,8 @@ BEGIN
2811
2811
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
2812
2812
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', '') + N'
2813
2813
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
2814
-
WHERE rg.object_id = @ObjectID
2815
-
) AS y
2814
+
WHERE rg.object_id = @ObjectID'+IIF(@ShowPartitionRanges =1, N'
2815
+
) AS y', '') + N'
2816
2816
) AS x
2817
2817
PIVOT (MAX(details) FOR column_name IN ( '+ @ColumnList + N')) AS pivot1
0 commit comments