Skip to content

Instantly share code, notes, and snippets.

@ghiboz
Created September 16, 2011 07:37
Show Gist options
  • Save ghiboz/1221456 to your computer and use it in GitHub Desktop.
Save ghiboz/1221456 to your computer and use it in GitHub Desktop.
SQL: reset autoincrement
-- cancello la load unit e azzero l'id autoincrementante
delete from dtLu where pLu > 0
DBCC CHECKIDENT ('dtLu', RESEED,0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment