Reset SQL autoincrement

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

Summary

Reset an auto-incrementing columns in a table.

Code

DBCC CHECKIDENT (TABLE_NAME, RESEED, 0)