Поделиться через


Метод CheckIndex

Tests the integrity of database pages that store the index.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Function CheckIndex As StringCollection
'Применение
Dim instance As Index
Dim returnValue As StringCollection

returnValue = instance.CheckIndex()
public StringCollection CheckIndex()
public:
StringCollection^ CheckIndex()
member CheckIndex : unit -> StringCollection 
public function CheckIndex() : StringCollection

Возвращаемое значение

Тип: System.Collections.Specialized. . :: . .StringCollection
A StringCollection object value that contains the error messages generated by the integrity check.

Замечания

The CheckIndex method is implemented using the Transact-SQL DBCC CHECKTABLE statement.

ПримечаниеПримечание

Indexes based on the UserDefinedTableType object cannot be checked and running this method will generate an exception.