다음을 통해 공유


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.