UpdateIndexStatistics Method

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The UpdateIndexStatistics method forces data distribution statistics update for all indexes on user-defined tables in the referenced Microsoft SQL Server database.

語法

object.UpdateIndexStatistics()

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT UpdateIndexStatistics( );

備註

Index-based, data distribution statistics support SQL Server query optimization. Data distribution statistics are calculated for an index when the index is first used in query optimization or at user direction. Statistics are updated automatically at configurable intervals and at user direction.

Applies To: