how to make sql auto change ID column in case of deleting code example Example: sql server reset auto increment DBCC CHECKIDENT (mytable, RESEED, 0)