Last active
August 29, 2015 14:16
-
-
Save eternaltung/3220afcd166ccd3aded0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CREATE PROCEDURE [dbo].[sp_Test1] | |
@table1_Id INT OUTPUT | |
AS | |
begin try | |
begin transaction | |
print 'sp_Test1:executing sp_Test2' | |
exec sp_Test2 @table1_Id output | |
print 'sp_Test1:executing sp_Test3' | |
exec sp_Test3 | |
print 'commit tran' | |
commit transaction | |
end try | |
begin catch | |
rollback transaction | |
print 'sp_Test1:in catch' | |
RAISERROR('raiseerror:sp_Test1', 16, 1) | |
end catch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment