Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shows how to use OUTPUT with the INSERT statement
INSERT INTO dbo.CustomersTableIdent (FirstName, LastName)
OUTPUT inserted.id, inserted.FirstName, inserted.LastName
VALUES ('My first name', 'My last name');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment