StatisticsIndex Property
未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。
The StatisticsIndex property directs Index object property evaluation when the object is used to create a Microsoft SQL Server index.
語法
object
.StatisticsIndex [= value]
Parts
- object
An expression that evaluates to an object in the Applies To list
- value
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write before index creation. Read-only when referencing an existing index.
Prototype (C/C++)
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.