Skip to content

Instantly share code, notes, and snippets.

@adamfisher
Created October 31, 2014 13:07
Show Gist options
  • Save adamfisher/3259d1c84340e4a0122b to your computer and use it in GitHub Desktop.
Save adamfisher/3259d1c84340e4a0122b to your computer and use it in GitHub Desktop.
Resets the identity value in a SQL Server Database to 1.
USE DatabaseName;
GO
DBCC CHECKIDENT ('TableName', RESEED, 1);
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment