Index.CheckIndex 메서드

Tests the integrity of database pages that store the index.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Function CheckIndex As StringCollection
‘사용 방법
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

반환 값

유형: System.Collections.Specialized.StringCollection
A StringCollection object value that contains the error messages generated by the integrity check.

주의

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

[!참고]

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

인덱스 생성, 변경 및 제거

참고 항목

참조

Index 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

인덱스

CREATE INDEX(Transact-SQL)