Reset SQL autoincrement

Last modified 1 year ago
Danger icon
The last modifications of this post were around 1 year ago, some information may be outdated!

Summary

Reset an auto-incrementing columns in a table.

Code

DBCC CHECKIDENT (TABLE_NAME, RESEED, 0)