Compartir a través de


UpdateStatistics Method

Esta característica se quitará en una versión futura de Microsoft SQL Server. Evite utilizar esta característica en nuevos trabajos de desarrollo y tenga previsto modificar las aplicaciones que actualmente la utilizan.

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

Sintaxis

object.UpdateStatistics()

Parts

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

Prototype (C/C++)

HRESULT UpdateStatistics( );

Notas

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.