The StatisticsIndex property directs Index object property evaluation when using the object to create a Microsoft® SQL Server™ 2000 index.
object.StatisticsIndex [= value]
object
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-DMO implements data distribution statistics creation using the Index object and StatisticsIndex property.