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
Copy file name to clipboardExpand all lines: docs/relational-databases/indexes/ordered-columnstore-indexes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ You can create or rebuild ordered columnstore indexes online only in some SQL pl
62
62
63
63
In SQL Server, online index operations aren't available in all editions. For more information, see [Editions and supported features of SQL Server 2025](../../sql-server/editions-and-components-of-sql-server-2025.md) and [Perform index operations online](perform-index-operations-online.md).
64
64
65
-
The [sys.column_store_segments](../system-catalog-views/sys-column-store-segments-transact-sql.md) system view helps you find the number of segment overlaps for certain data types and encodings. Use a [sample script](https://github.com/microsoft/sql-server-samples/blob/master/samples/features/columnstore/ordered-columnstore/order-quality.sql)to determine the order quality for eligible columns of all columnstore indexes in the current database.
65
+
For certain data types and encodings, the [sys.column_store_segments](../system-catalog-views/sys-column-store-segments-transact-sql.md) system view can help you find the number of segment overlaps. A [sample script](https://github.com/microsoft/sql-server-samples/blob/master/samples/features/columnstore/ordered-columnstore/order-quality.sql)based on this view determines the order quality for eligible columns of all columnstore indexes in the current database.
Copy file name to clipboardExpand all lines: docs/relational-databases/system-catalog-views/sys-column-store-segments-transact-sql.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,11 +52,11 @@ Returns one row for each column segment in a columnstore index. There is one col
52
52
53
53
The columnstore segment encoding type is selected by the [!INCLUDE[ssDE-md](../../includes/ssde-md.md)] by analyzing the segment data with the goal of achieving the lowest storage cost. If data is mostly distinct, the [!INCLUDE[ssDE-md](../../includes/ssde-md.md)] uses value-based encoding. If data is mostly not distinct, the [!INCLUDE[ssDE-md](../../includes/ssde-md.md)] uses hash-based encoding. The choice between string-based and value-based encoding is related to the type of data being stored, whether string data or binary data. All encodings take advantage of bit-packing and run-length encoding when possible.
54
54
55
-
Columnstore segment elimination applies to numeric, date, and time data types, and the **datetimeoffset** data type with scale less than or equal to two. Beginning in [!INCLUDE[sssql22-md](../../includes/sssql22-md.md)], segment elimination capabilities extend to string and binary data types, the **uniqueidentifier** data type, and the **datetimeoffset** data type for scale greater than two. Segment elimination does not apply to LOB data types such as **varchar(max)**, **nvarchar(max)**, and **varbinary(max)**. For more information, see [What's new in columnstore indexes](../indexes/columnstore-indexes-what-s-new.md#sql-server-2022-16x).
55
+
Columnstore segment elimination applies to numeric, date, and time data types, and the **datetimeoffset** data type with scale less than or equal to two. Beginning in [!INCLUDE[sssql22-md](../../includes/sssql22-md.md)], segment elimination capabilities expand to string and binary data types, the **uniqueidentifier** data type, and the **datetimeoffset** data type for scale greater than two. Segment elimination does not apply to LOB data types such as **varchar(max)**, **nvarchar(max)**, and **varbinary(max)**. For more information, see [What's new in columnstore indexes](../indexes/columnstore-indexes-what-s-new.md#sql-server-2022-16x).
56
56
57
57
## Permissions
58
58
59
-
All columns require at least `VIEW DEFINITION` permission on the view. The following columns return `NULL` unless the user also has the `SELECT` permission: `has_nulls`, `base_id`, `magnitude`, `min_data_id`, `max_data_id`, and `null_value`.
59
+
The `VIEW DEFINITION` permission on the view is required. The following columns return `NULL` unless the user also has the `SELECT` permission: `has_nulls`, `base_id`, `magnitude`, `min_data_id`, `max_data_id`, and `null_value`.
60
60
61
61
[!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)] For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md).
62
62
@@ -73,17 +73,17 @@ INNER JOIN sys.partitions AS p
73
73
INNER JOINsys.indexesAS i
74
74
ONp.object_id=i.object_id
75
75
WHEREi.type=5ORi.type=6
76
-
GROUP BYi.name, p.object_id, p.index_id, i.type_desc;
76
+
GROUP BYi.name, p.object_id, p.index_id, i.type_desc;
0 commit comments