Index.UpdateStatistics Method

Updates the statistics for the referenced index.

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

多載清單

名稱 Description
Index.UpdateStatistics ()
Updates statistics for the referenced index.
Index.UpdateStatistics (StatisticsScanType)
Updates statistics for the referenced index with the specified statistics scan type.
Index.UpdateStatistics (StatisticsScanType, Int32)
Updates statistics for the referenced index with the specified statistics scan type and specified sample size.
Index.UpdateStatistics (StatisticsScanType, Int32, Boolean)
Updates statistics for the referenced index with the specified statistics scan type and specified sample size and with the option to recompute the statistics.

請參閱

參考

Index Class
Index Members
Microsoft.SqlServer.Management.Smo Namespace

其他資源

Creating, Altering, and Removing Indexes
索引
UPDATE STATISTICS (Transact-SQL)