Created
February 26, 2015 10:35
-
-
Save eternaltung/ccdb84f84f4896343060 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_Test3] | |
AS | |
begin try | |
print 'sp_Test3:updating' | |
update testTable2 set Num=6 where Id=2 | |
print 'sp_Test3:updated' | |
end try | |
begin catch | |
print 'sp_Test3:in catch' | |
RAISERROR('raiseerror:sp_Test3', 16, 1) | |
end catch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment