UpdateStatistics Método (StatisticsScanType, Int32, Boolean)
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, _
recompute As Boolean _
)
'Uso
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
)
Parámetros
- scanType
Tipo: Microsoft.SqlServer.Management.Smo. . :: . .StatisticsScanType
Valor del objeto StatisticsScanType que especifica la operación de tipo que se debe realizar durante la creación o la actualización de un objeto Statistic.
- 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.
- recompute
Tipo: System. . :: . .Boolean
Valor Boolean que especifica si las estadísticas se volverán a calcular automáticamente o no.
Si es True, se vuelven a calcular automáticamente las estadísticas. En caso contrario, es False.
Comentarios
Nota
Columns based on the UserDefinedTableType object cannot be modified and this method generates an exception.