Pages

Wednesday, August 21, 2013

SQL SERVER – DBCC RESEED Table Identity Value – Reset Table Identity | Journey to SQL Authority with Pinal Dave

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