Compartir a través de


CheckIndexWithResult Método

Tests the integrity of database pages that store the index.

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

Sintaxis

'Declaración
Public Function CheckIndexWithResult As DataTable
'Uso
Dim instance As Index
Dim returnValue As DataTable

returnValue = instance.CheckIndexWithResult()
public DataTable CheckIndexWithResult()
public:
DataTable^ CheckIndexWithResult()
member CheckIndexWithResult : unit -> DataTable 
public function CheckIndexWithResult() : DataTable

Valor devuelto

Tipo: System.Data. . :: . .DataTable
A DataTable object value that contains the error message generated by the integrity check.

Notas

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

[!NOTA]

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