Méthode Index.CheckIndexWithResult
Tests the integrity of database pages that store the index.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Function CheckIndexWithResult As DataTable
'Utilisation
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
Valeur de retour
Type : System.Data.DataTable
A DataTable object value that contains the error message generated by the integrity check.
Notes
The CheckIndex method is implemented using the Transact-SQL DBCC CHECKTABLE WITH TABLERESULTS statement.
[!REMARQUE]
Indexes based on the UserDefinedTableType object cannot be checked and running this method will generate an exception.
Exemples
Création, modification et suppression d'index
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo