Solomon Rutzky covers the four primary scenarios when running DBCC CHECKIDENT
and specifying a new reseed value:
So, when specifying a “new_reseed_value“, the possible scenarios covered are:
1. Rows exist
2. No rows due to none inserted since the table was created
3. No rows due toTRUNCATE TABLE
operation
What’s missing? The following scenario:
No rows due toDELETE
operation!!
Click through to see how DBCC CHECKIDENT
behaves differently depending upon the scenario.