Skip to content

Commit 07cdbbb

Browse files
Ja-DunnrwestMSFT
andauthored
Apply suggestions from code review
Co-authored-by: Randolph West MSFT <97149825+rwestMSFT@users.noreply.github.com>
1 parent 84315ba commit 07cdbbb

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/t-sql/statements/create-columnstore-index-transact-sql.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ WITH (MAXDOP = 2);
158158

159159
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).
160160

161-
###### COMPRESSION_DELAY = **0** | *delay* [ Minutes ]
161+
###### COMPRESSION_DELAY = 0 | *delay* [ Minutes ]
162162

163163
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.
164164

@@ -214,7 +214,7 @@ Create a nonclustered columnstore index on a rowstore table stored as a heap or
214214

215215
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).
216216

217-
#### **(** _column_ [ **,**...*n* ] **)**
217+
#### ( *column* [ ,...*n* ] )
218218

219219
Specifies the columns to store. A nonclustered columnstore index is limited to 1024 columns.
220220
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
258258
WITH ( ONLINE = ON );
259259
```
260260

261-
##### COMPRESSION_DELAY = **0** | \<delay>[Minutes]
261+
##### COMPRESSION_DELAY = 0 | \<delay>[Minutes]
262262

263263
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.
264264

@@ -290,7 +290,7 @@ For guidance on filtered indexes, see [Create filtered indexes](../../relational
290290

291291
The following options specify the filegroups on which the index is created:
292292

293-
##### *partition_scheme_name* **(** _column_name_ **)**
293+
##### *partition_scheme_name* ( *column_name* )
294294

295295
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).
296296

@@ -304,17 +304,17 @@ A columnstore index on a partitioned table must be partition aligned. For more i
304304

305305
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.
306306

307-
##### **"**default**"**
307+
##### "default"
308308

309309
Creates the specified index on the default filegroup.
310310

311311
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 &#40;Transact-SQL&#41;](../../t-sql/statements/set-quoted-identifier-transact-sql.md).
312312

313-
## <a name="Permissions"></a> Permissions
313+
## Permissions
314314

315315
Requires ALTER permission on the table.
316316

317-
## <a name="GenRemarks"></a> General remarks
317+
## <a id="GenRemarks"></a> General remarks
318318

319319
You can create a columnstore index on a temporary table. When the table is dropped or the session ends, the index is also dropped.
320320

@@ -352,7 +352,7 @@ If the SET options are incorrect, the following conditions can occur:
352352

353353
For more information about filtered indexes, see [Create filtered indexes](../../relational-databases/indexes/create-filtered-indexes.md).
354354

355-
## <a name="LimitRest"></a> Limitations and restrictions
355+
## <a id="LimitRest"></a> Limitations and restrictions
356356

357357
Each column in a columnstore index must be of one of the following common business data types:
358358

@@ -364,8 +364,8 @@ Each column in a columnstore index must be of one of the following common busine
364364
- time [ ( *n* ) ]
365365
- float [ ( *n* ) ]
366366
- real [ ( *n* ) ]
367-
- decimal [ ( *precision* [ *, scale* ] **)** ]
368-
- numeric [ ( *precision* [ *, scale* ] **)** ]
367+
- decimal [ ( *precision* [ *, scale* ] ) ]
368+
- numeric [ ( *precision* [ *, scale* ] ) ]
369369
- money
370370
- smallmoney
371371
- bigint
@@ -430,7 +430,7 @@ The following limitations apply only to [!INCLUDE[ssSQL14](../../includes/sssql1
430430

431431
For information about the performance benefits and limitations of columnstore indexes, see [Columnstore indexes overview](../../relational-databases/indexes/columnstore-indexes-overview.md).
432432

433-
## <a name="Metadata"></a> Metadata
433+
## Metadata
434434

435435
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:
436436

@@ -441,7 +441,7 @@ All of the columns in a columnstore index are stored in the metadata as included
441441
- [sys.column_store_dictionaries &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-column-store-dictionaries-transact-sql.md)
442442
- [sys.column_store_row_groups &#40;Transact-SQL&#41;](../../relational-databases/system-catalog-views/sys-column-store-row-groups-transact-sql.md)
443443

444-
## <a name="convert"></a> Examples: convert table from rowstore to columnstore
444+
## <a id="convert"></a> Examples: convert table from rowstore to columnstore
445445

446446
### A. Convert a heap to a clustered columnstore index
447447

@@ -617,7 +617,7 @@ ON dbo.[MyFactTable]
617617
REORGANIZE;
618618
```
619619

620-
## <a name="nonclustered"></a> Examples for nonclustered columnstore indexes
620+
## <a id="nonclustered"></a> Examples for nonclustered columnstore indexes
621621

622622
### A. Create a columnstore index as a secondary index on a rowstore table
623623

@@ -668,7 +668,7 @@ CREATE NONCLUSTERED COLUMNSTORE INDEX "FIBillOfMaterialsWithEndDate"
668668
WHERE EndDate IS NOT NULL;
669669
```
670670
671-
### <a name="ncDML"></a> D. Change the data in a nonclustered columnstore index
671+
### <a id="ncDML"></a> D. Change the data in a nonclustered columnstore index
672672
673673
Applies to: [!INCLUDE[ssSQL11](../../includes/sssql11-md.md)] through [!INCLUDE[ssSQL14](../../includes/sssql14-md.md)].
674674

0 commit comments

Comments
 (0)