CheckIndexWithResult 方法

Tests the integrity of database pages that store the index.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function CheckIndexWithResult As DataTable
用法
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

返回值

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

注释

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

注意注意

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