DBCC CHECKIDENT ('', RESEED)
This statement will RESEED the identity field to current maximum value in the column. You may also give a custom reseed value to the column:
DBCC CHECKIDENT ('', RESEED, )
Specify an integer number in place of the new_value. For example, to reset the identity column in 'tblA' to the value 20, use:
DBCC CHECKIDENT ('tblA', RESEED, 20)
No comments:
Post a Comment