【问题标题】:sql server 2000 try catchsql server 2000 尝试捕获
【发布时间】:2011-07-29 23:31:51
【问题描述】:

在 sql server 2000 中没有像 2005 年那样的 try...catch 吗? 如果不是 2000 年 try...catch 的等价物是什么? 如果有,正确的语法是什么?

【问题讨论】:

标签: sql sql-server sql-server-2000


【解决方案1】:

2000 年没有这样的事情...检查 @@error 是您的选择并使用 XACT_ABORT

这里有两个很好的链接 http://www.sommarskog.se/error-handling-II.htmlhttp://www.sommarskog.se/error-handling-I.html 均由 Erland Sommarskog 编写

【讨论】:

    猜你喜欢
    • 2014-11-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-03
    • 2010-09-26
    • 1970-01-01
    相关资源
    最近更新 更多