-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.
0 commit comments