Condividi tramite


UpdateStatistics Method

Questa funzionalità verrà rimossa in una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

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

Sintassi

object
.UpdateStatistics(
)

Parts

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

Prototype (C/C++)

HRESULT UpdateStatistics( );

Osservazioni

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