Freigeben über


UpdateIndexStatistics Method

Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

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

Syntax

object
.UpdateIndexStatistics(
)

Parts

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

Prototype (C/C++)

HRESULT UpdateIndexStatistics( );

Hinweise

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: