次の方法で共有


UpdateStatistics Method

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The UpdateStatistics method forces data distribution statistics update for a referenced Microsoft SQL Server index or all indexes defined on a SQL Server table.

構文

object
.UpdateStatistics(
)

Parts

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

Prototype (C/C++)

HRESULT UpdateStatistics( );

解説

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:

Index Object

Table Object