When deleting all records from a SQL Server table, you may need to reset the primary key to start from
zero again when inserting new rows. Just execute the following script:
DBCC CHECKIDENT('TableName', RESEED, 0)
Related posts