CheckIdentityValues Method

Description

For every table in the database, checks the current identity value and compares it with the maximum value in the identity column. If the current identity value is invalid, it will be reset with the maximum value in the identity column.

Visual Basic

Database.CheckIdentityValues

C++

HRESULT pDatabase->CheckIdentityValues ( );

Reference

DBCC CHECKIDENT