Share via


Méthode UpdateStatistics (StatisticsScanType, Int32, Boolean)

Met à jour des objets Statistic qui surveillent cette colonne à l'aide d'une analyse échantillonnée.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Sub UpdateStatistics ( _
    scanType As StatisticsScanType, _
    sampleValue As Integer, _
    recompute As Boolean _
)
'Utilisation
Dim instance As Column
Dim scanType As StatisticsScanType
Dim sampleValue As Integer
Dim recompute As Boolean

instance.UpdateStatistics(scanType, sampleValue, _
    recompute)
public void UpdateStatistics(
    StatisticsScanType scanType,
    int sampleValue,
    bool recompute
)
public:
void UpdateStatistics(
    StatisticsScanType scanType, 
    int sampleValue, 
    bool recompute
)
member UpdateStatistics : 
        scanType:StatisticsScanType * 
        sampleValue:int * 
        recompute:bool -> unit 
public function UpdateStatistics(
    scanType : StatisticsScanType, 
    sampleValue : int, 
    recompute : boolean
)

Paramètres

  • sampleValue
    Type : System. . :: . .Int32
    Valeur Int32 qui spécifie le nombre de lignes ou le pourcentage du nombre total de lignes à utiliser dans une analyse échantillonnée. Ce paramètre n'est requis que si l'objet scanType indique une analyse échantillonnée.
  • recompute
    Type : System. . :: . .Boolean
    Valeur Boolean qui spécifie si les statistiques seront recalculées automatiquement ou non.
    Si la valeur est True, les statistiques sont recalculées automatiquement. Dans le cas contraire, la valeur est False.

Notes

Notes

Columns based on the UserDefinedTableType object cannot be modified and this method generates an exception.