Skip to content

Commit ee2f675

Browse files
authored
Merge pull request #11114 from XiaoyuMSFT/tutorialbranch
fix code example
2 parents 2fd309a + d08b109 commit ee2f675

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

docs/t-sql/statements/create-table-azure-sql-data-warehouse.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,7 @@ Creates one or more table partitions. These partitions are horizontal table slic
166166

167167
Clustered columnstore index is the default for creating tables in Azure SQL Data Warehouse. The ORDER specification defaults to COMPOUND keys. Sorting will always be ascending order. If no ORDER clause is specified, columnstore will not be sorted. Due to the ordering process, a table with ordered clustered columnstore index may experience longer data loading times than non-ordered clustered columnstore indexes. If you need more tempdb space while loading data, you can decrease the amount of data per insert.
168168

169-
During preview, you can run this query to check the column(s) with ORDER enabled.
170-
171-
```sql
172-
SELECT i.name AS index_name
173-
,COL_NAME(ic.object_id,ic.column_id) AS column_name
174-
,ic.index_column_id
175-
,ic.key_ordinal
176-
,ic.is_included_column
177-
FROM sys.indexes AS i
178-
INNER JOIN sys.index_columns AS ic
179-
ON i.object_id = ic.object_id AND i.index_id = ic.index_id
180-
```
169+
Users can query column_store_order_ordinal column in sys.index_columns for the column(s) a table is ordered on and the sequence in the ordering.
181170

182171
### <a name="DataTypes"></a> Data type
183172

0 commit comments

Comments
 (0)