Skip to content

Instantly share code, notes, and snippets.

@r1d3rzz
Created July 28, 2025 09:11
Show Gist options
  • Save r1d3rzz/b5aeeae13c0c02052b599d34f13302a6 to your computer and use it in GitHub Desktop.
Save r1d3rzz/b5aeeae13c0c02052b599d34f13302a6 to your computer and use it in GitHub Desktop.
Set Next Start Auto Increment Id value in mssql
-- current id 1, 2, 3, 4 so reseed is 4 next is 5
DBCC CHECKIDENT ('Comment', RESEED, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment