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.
Database.CheckIdentityValues
HRESULT pDatabase->CheckIdentityValues ( );
DBCC CHECKIDENT