StatisticsIndex Property (SQL-DMO)

The StatisticsIndex property directs Index object property evaluation when using the object to create a Microsoft® SQL Server™ index.

Applies To

Index Object

Syntax

object.StatisticsIndex [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value True or False

Remarks

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 by using the Index object and StatisticsIndex property.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetStatisticsIndex(LPBOOL pRetVal);

HRESULT SetStatisticsIndex(BOOL NewVal);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.