Skip to content

Instantly share code, notes, and snippets.

@ghiboz
Created September 16, 2011 07:39
Show Gist options
  • Save ghiboz/1221464 to your computer and use it in GitHub Desktop.
Save ghiboz/1221464 to your computer and use it in GitHub Desktop.
SQL: togliere autoincrement
-- attivo l'identity manuale
SET IDENTITY_INSERT dtBtc ON
-- inserisco
insert into dtBtc (pBtc, sBtc, pBtcStt)
values ( 0, '...', 0 )
-- tolgo l'identity manuale
SET IDENTITY_INSERT dtBtc OFF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment