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/t-sql/statements/create-columnstore-index-transact-sql.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ WITH (MAXDOP = 2);
158
158
159
159
For more information, see [Configure the max degree of parallelism Server Configuration Option](../../database-engine/configure-windows/configure-the-max-degree-of-parallelism-server-configuration-option.md), and [Configure Parallel Index Operations](../../relational-databases/indexes/configure-parallel-index-operations.md).
For a disk-based table, *delay* specifies the minimum number of minutes that a delta rowgroup in the closed state must remain in the delta rowgroup. SQL Server can then compress it into the compressed rowgroup. Because disk-based tables don't track insert and update times on individual rows, SQL Server applies the delay to delta rowgroups in the closed state.
164
164
@@ -214,7 +214,7 @@ Create a nonclustered columnstore index on a rowstore table stored as a heap or
214
214
215
215
Specifies the name of the index. *index_name* must be unique within the table, but doesn't have to be unique within the database. Index names must follow the rules of [identifiers](../../relational-databases/databases/database-identifiers.md).
216
216
217
-
#### **(**_column_[**,**...*n*]**)**
217
+
#### ( *column*[ ,...*n*])
218
218
219
219
Specifies the columns to store. A nonclustered columnstore index is limited to 1024 columns.
220
220
Each column must be of a supported data type for columnstore indexes. See [Limitations and restrictions](../../t-sql/statements/create-columnstore-index-transact-sql.md#LimitRest) for a list of the supported data types.
@@ -258,7 +258,7 @@ CREATE COLUMNSTORE INDEX ncci ON Sales.OrderLines (StockItemID, Quantity, UnitPr
Specifies a lower bound on how long a row should stay in a delta rowgroup, before it's eligible for migration to a compressed rowgroup. For example, you can say that if a row is unchanged for 120 minutes, that row is eligible for compressing into columnar storage format.
264
264
@@ -290,7 +290,7 @@ For guidance on filtered indexes, see [Create filtered indexes](../../relational
290
290
291
291
The following options specify the filegroups on which the index is created:
Specifies the partition scheme that defines the filegroups onto which the partitions of a partitioned index are mapped. The partition scheme must exist within the database by executing [CREATE PARTITION SCHEME](../../t-sql/statements/create-partition-scheme-transact-sql.md).
296
296
@@ -304,17 +304,17 @@ A columnstore index on a partitioned table must be partition aligned. For more i
304
304
305
305
Specifies a filegroup name on which to create the index. If *filegroup_name* isn't specified and the table isn't partitioned, the index uses the same filegroup as the underlying table. The filegroup must already exist.
306
306
307
-
##### **"**default**"**
307
+
##### "default"
308
308
309
309
Creates the specified index on the default filegroup.
310
310
311
311
The term default, in this context, isn't a keyword. It's an identifier for the default filegroup and must be delimited, as in ON **"**default**"** or ON **[**default**]**. If "default" is specified, the QUOTED_IDENTIFIER option must be ON for the current session, which is the default setting. For more information, see [SET QUOTED_IDENTIFIER (Transact-SQL)](../../t-sql/statements/set-quoted-identifier-transact-sql.md).
312
312
313
-
## <aname="Permissions"></a> Permissions
313
+
## Permissions
314
314
315
315
Requires ALTER permission on the table.
316
316
317
-
## <aname="GenRemarks"></a> General remarks
317
+
## <aid="GenRemarks"></a> General remarks
318
318
319
319
You can create a columnstore index on a temporary table. When the table is dropped or the session ends, the index is also dropped.
320
320
@@ -352,7 +352,7 @@ If the SET options are incorrect, the following conditions can occur:
352
352
353
353
For more information about filtered indexes, see [Create filtered indexes](../../relational-databases/indexes/create-filtered-indexes.md).
354
354
355
-
## <aname="LimitRest"></a> Limitations and restrictions
355
+
## <aid="LimitRest"></a> Limitations and restrictions
356
356
357
357
Each column in a columnstore index must be of one of the following common business data types:
358
358
@@ -364,8 +364,8 @@ Each column in a columnstore index must be of one of the following common busine
364
364
- time [ ( *n* ) ]
365
365
- float [ ( *n* ) ]
366
366
- real [ ( *n* ) ]
367
-
- decimal [ ( *precision*[*, scale*]**)**]
368
-
- numeric [ ( *precision*[*, scale*]**)**]
367
+
- decimal [ ( *precision*[*, scale*])]
368
+
- numeric [ ( *precision*[*, scale*])]
369
369
- money
370
370
- smallmoney
371
371
- bigint
@@ -430,7 +430,7 @@ The following limitations apply only to [!INCLUDE[ssSQL14](../../includes/sssql1
430
430
431
431
For information about the performance benefits and limitations of columnstore indexes, see [Columnstore indexes overview](../../relational-databases/indexes/columnstore-indexes-overview.md).
432
432
433
-
## <aname="Metadata"></a> Metadata
433
+
## Metadata
434
434
435
435
All of the columns in a columnstore index are stored in the metadata as included columns. The columnstore index doesn't have key columns. The following system views provide information about columnstore indexes:
436
436
@@ -441,7 +441,7 @@ All of the columns in a columnstore index are stored in the metadata as included
0 commit comments