Метод UpdateStatistics (StatisticsScanType)
Updates statistics for the referenced index with the specified statistics scan type.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Sub UpdateStatistics ( _
scanType As StatisticsScanType _
)
'Применение
Dim instance As Index
Dim scanType As StatisticsScanType
instance.UpdateStatistics(scanType)
public void UpdateStatistics(
StatisticsScanType scanType
)
public:
void UpdateStatistics(
StatisticsScanType scanType
)
member UpdateStatistics :
scanType:StatisticsScanType -> unit
public function UpdateStatistics(
scanType : StatisticsScanType
)
Параметры
- scanType
Тип: Microsoft.SqlServer.Management.Smo. . :: . .StatisticsScanType
A StatisticsScanType the method used to update the statistics.
Замечания
![]() |
---|
Indexes based partly on the UserDefinedTableType object do not support statistics and running this method will generate an exception. |
См. также