共用方式為


Index.UpdateStatistics Method

Definition

Overloads

UpdateStatistics(StatisticsScanType, Int32, Boolean)

forces data distribution statistics update for a referenced index

UpdateStatistics()

forces data distribution statistics update for a referenced index

UpdateStatistics(StatisticsScanType)

forces data distribution statistics update for a referenced index

UpdateStatistics(StatisticsScanType, Int32)

forces data distribution statistics update for a referenced index

UpdateStatistics(StatisticsScanType, Int32, Boolean)

forces data distribution statistics update for a referenced index

public void UpdateStatistics (Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType, int sampleValue, bool recompute);
member this.UpdateStatistics : Microsoft.SqlServer.Management.Smo.StatisticsScanType * int * bool -> unit
Public Sub UpdateStatistics (scanType As StatisticsScanType, sampleValue As Integer, recompute As Boolean)

Parameters

sampleValue
Int32
recompute
Boolean

Applies to

UpdateStatistics()

forces data distribution statistics update for a referenced index

public void UpdateStatistics ();
member this.UpdateStatistics : unit -> unit
Public Sub UpdateStatistics ()

Applies to

UpdateStatistics(StatisticsScanType)

forces data distribution statistics update for a referenced index

public void UpdateStatistics (Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType);
member this.UpdateStatistics : Microsoft.SqlServer.Management.Smo.StatisticsScanType -> unit
Public Sub UpdateStatistics (scanType As StatisticsScanType)

Parameters

Applies to

UpdateStatistics(StatisticsScanType, Int32)

forces data distribution statistics update for a referenced index

public void UpdateStatistics (Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType, int sampleValue);
member this.UpdateStatistics : Microsoft.SqlServer.Management.Smo.StatisticsScanType * int -> unit
Public Sub UpdateStatistics (scanType As StatisticsScanType, sampleValue As Integer)

Parameters

sampleValue
Int32

Applies to