Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sql server 2000 try catch

There is no try...catch in sql server 2000 like in 2005? If not what is the equivalent for try...catch in 2000? If there is, what is the correct syntax?

like image 709
liron Avatar asked Apr 05 '11 13:04

liron


1 Answers

there is no such thing in 2000...Checking @@error is your option and using XACT_ABORT

Here are two good links for you http://www.sommarskog.se/error-handling-II.html and http://www.sommarskog.se/error-handling-I.html both written by Erland Sommarskog

like image 153
SQLMenace Avatar answered Sep 24 '22 02:09

SQLMenace