How do I reset an increment identity's starting value in SQL Server

Joel Meador picture Joel Meador · Aug 19, 2008 · Viewed 64.8k times · Source

I would like to have a nice template for doing this in development. How do I reset an increment identity's starting value in SQL Server?

Answer

Ryan Sampson picture Ryan Sampson · Aug 19, 2008
DBCC CHECKIDENT('TableName', RESEED, 0)