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) If table has to start with an… Continue Reading...
Source: SQL SERVER – DBCC RESEED Table Identity Value – Reset Table Identity | Journey to SQL Authority with Pinal Dave
No comments:
Post a Comment