Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Last active November 16, 2017 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsibinski/39e47705e1d6d5f16c7a45badab543c8 to your computer and use it in GitHub Desktop.
Save dsibinski/39e47705e1d6d5f16c7a45badab543c8 to your computer and use it in GitHub Desktop.
SET XACT_ABORT ON
GO
BEGIN TRANSACTION
GO
-- SQL object 1 (CREATE/ALTER/INSERT etc...)
GO
-- SQL object 2 (CREATE/ALTER/INSERT etc...)
GO
-- next SQL batches if needed, each followed by GO
COMMIT
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment