CheckAllocations Method

SQLServer.Database Object

Description

Checks the internal allocation consistency of the database. This includes checking that data and index pages are consistent with the allocation information in the extent.

Visual Basic

strOutput = Database.CheckAllocations

C++

HRESULT pDatabase->CheckAllocations ( SQLOLE_LPBSTR pstrOutput );

Elements

Element Type Description

strOutput String The output returned by the internal consistency check

Reference

DBCC NEWALLOC