Using SQL Server, I've got a column "ID" in my table that auto-increments every time I insert a new record.
How can I reset this counter and return to 1?
Using SQL Server, I've got a column "ID" in my table that auto-increments every time I insert a new record.
How can I reset this counter and return to 1?
Copyright © 2021 Jogjafile Inc.
If you are SQL Server, and assuming your ID column uses the IDENTITY() property, you need to use the DBCC CHECKIDENT syntax: