Skip to content

Commit 36a2ff1

Browse files
Add link
1 parent 8424db4 commit 36a2ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ Many of the data compression considerations apply to XML compression. You should
968968
969969
When a rowstore index is created, the [!INCLUDE[ssDE](../../includes/ssde-md.md)] also creates [statistics](../../relational-databases/statistics/statistics.md) on the key columns of the index. The name of the statistics object in the [sys.stats](../../relational-databases/system-catalog-views/sys-stats-transact-sql.md) catalog view matches the name of the index. For a non-partitioned index, the statistics are built using a full scan of the data. For a partitioned index, statistics are build using the default sampling algorithm.
970970
971-
When a columnstore index is created, the [!INCLUDE[ssDE](../../includes/ssde-md.md)] creates a statistics object in [sys.stats](../../relational-databases/system-catalog-views/sys-stats-transact-sql.md) as well. This statistics object doesn't contain statistics data such as the histogram and the density vector. It is used when creating a database clone by scripting the database. At that time, the `DBCC SHOW_STATISTICS` and `UPDATE STATISTICS ... WITH STATS_STREAM` commands are used to obtain columnstore metadata such as segment, dictionary, and delta store size and add it to the statistics on the columnstore index. This metadata is obtained dynamically at query compilation time for a regular database, but is provided by the statistics object for a database clone. The `UPDATE STATISTICS` command isn't supported for the statistics object on a columnstore index in any other scenario.
971+
When a columnstore index is created, the [!INCLUDE[ssDE](../../includes/ssde-md.md)] creates a statistics object in [sys.stats](../../relational-databases/system-catalog-views/sys-stats-transact-sql.md) as well. This statistics object doesn't contain statistics data such as the histogram and the density vector. It is used when creating a database clone by scripting the database. At that time, the `DBCC SHOW_STATISTICS` and `UPDATE STATISTICS ... WITH STATS_STREAM` commands are used to obtain columnstore metadata such as segment, dictionary, and delta store size and add it to the statistics on the columnstore index. This metadata is obtained dynamically at query compilation time for a regular database, but is provided by the statistics object for a database clone. The [UPDATE STATISTICS](../../t-sql/statements/update-statistics-transact-sql.md) command isn't supported for the statistics object on a columnstore index in any other scenario.
972972
973973
## Permissions
974974

0 commit comments

Comments
 (0)