| |

How do I reset the identity column?
Answer:
You can use the DBCC CHECKIDENT statement, if you want to reset or
reseed the identity column. For example, if you need to force the
current identity value in the jobs table to a value of 100, you can
use the following:
USE pubs
GO
DBCC CHECKIDENT (jobs, RESEED, 100)
GO
|
See DBCC CHECKIDENT in SQL Server Books Online for more details.
|
|