how to reset id auto increment in sql server code example Example: sql server reset auto increment DBCC CHECKIDENT (mytable, RESEED, 0)