Last active
November 28, 2017 21:48
-
-
Save thierryx96/39cdfbeef46413304f49 to your computer and use it in GitHub Desktop.
SQL Patterns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Atomic exec of a script | |
BEGIN TRY | |
BEGIN TRANSACTION | |
... | |
COMMIT TRANSACTION | |
END TRY | |
BEGIN CATCH | |
ROLLBACK TRANSACTION; | |
THROW | |
END CATCH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment