Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
try catch, raiserror and throw
-- error raise begin try declare @a int=0 set @a=(1/0) end try begin catch print('divide by zero') raiserror('divide by zero',16,1) -- 1. message 2. level 3. state -- new feature of 2012 sql server "throw" --Throw; end catch
run
|
edit
|
history
|
help
0
bc160401882
adbms 0
Employee Table
MyWall
Elena-Tests
Manish_Sql_updated
tr3
Customer_Orders
String between two indexes
dbms