Share via


UpdateStatistics Método (StatisticsScanType, Int32)

Actualiza los objetos Statistic que supervisan esta columna mediante un examen muestreado.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub UpdateStatistics ( _
    scanType As StatisticsScanType, _
    sampleValue As Integer _
)
'Uso
Dim instance As Column
Dim scanType As StatisticsScanType
Dim sampleValue As Integer

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

Parámetros

  • sampleValue
    Tipo: System. . :: . .Int32
    Valor Int32 que especifica el número de filas o el porcentaje del número total de filas que se deben usar en un examen muestreado. Solo se requiere este parámetro cuando scanType indica un examen muestreado.

Comentarios

Nota

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