Skip to content

Instantly share code, notes, and snippets.

@csdear
Created January 14, 2016 17:07
Show Gist options
  • Select an option

  • Save csdear/2f7bc04babf63557e96f to your computer and use it in GitHub Desktop.

Select an option

Save csdear/2f7bc04babf63557e96f to your computer and use it in GitHub Desktop.
Insert Into where there is an Identity Constraint
--e.g.
SELECT * FROM audit_log_type
SET IDENTITY_INSERT audit_log_type ON
INSERT INTO audit_log_type
(audit_type, description)
VALUES (12, 'Cancel Subscription')
SET IDENTITY_INSERT audit_log_type OFF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment