Metodo Index.CheckIndexWithResult

Tests the integrity of database pages that store the index.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Function CheckIndexWithResult As DataTable
'Utilizzo
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

Valore restituito

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

Osservazioni

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.

Esempi

Creazione, modifica e rimozione di indici

Vedere anche

Riferimento

Index Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Indici

CREATE INDEX (Transact-SQL)