简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM