Partager via


UpdateIndexStatistics Method

Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.

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

Syntaxe

object
.UpdateIndexStatistics(
)

Parts

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

Prototype (C/C++)

HRESULT UpdateIndexStatistics( );

Notes

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:

Database Object