Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

StatisticsIndex Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The StatisticsIndex property directs Index object property evaluation when the object is used to create a Microsoft SQL Server index.

object.StatisticsIndex [= value]
object

An expression that evaluates to an object in the Applies To list

value

TRUE or FALSE

Boolean

Read/write before index creation. Read-only when referencing an existing index.

HRESULT GetStatisticsIndex(LPBOOL pRetVal);
HRESULT SetStatisticsIndex(BOOL NewVal);

SQL Server query optimization relies, in part, on data distribution statistics maintained on indexes. To aid query optimization, SQL Server can generate data distribution statistics for one or more columns in a table without imposing overhead associated with index maintenance. SQL Distributed Management Objects (SQL-DMO) implements data distribution statistics creation using the Index object and the StatisticsIndex property.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.