Reset Identity column after deleting record from table
DBCC CHECKIDENT can reseed (reset) the identity value of the table. For example, YourTable has 25 rows with 25 as last identity. If we want next record to have identity as 35 we need to run following T SQL script in Query Analyzer
DBCC CHECKIDENT (yourtable, reseed, 34)
Comments
Post a Comment