SET IDENTITY

  • Allows explicit values to be inserted into the column with the identity property.
SET IDENTITY_INSERT SomeTable OFF
GO
 
INSERT INTO SomeTable(IdentityColumn) VALUES(1)
 
GO
SET IDENTITY_INSERT SomeTable  OFF
programming/mssql/setidentity.txt · Last modified: 2018-06-21 19:48 (external edit)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0