Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
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 CheckIndex As StringCollection
'Utilisation
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
Valeur de retour
Type : System.Collections.Specialized.StringCollection
A StringCollection object value that contains the error messages generated by the integrity check.
Notes
The CheckIndex method is implemented using the Transact-SQL DBCC CHECKTABLE 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