且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SQL Server T-SQL错误处理的***做法是什么?

更新时间:2023-02-06 13:54:03

您应该阅读以下内容:

http ://www.sommarskog.se/error-handling-I.html

我不能够高度推荐该链接。这是一个很长的时间,但在一个好的方式。

I can't recommend that link highly enough. It's a bit long, but in a good way.

前面有一个免责声明,它最初是为SQL Server 2000编写的,但它涵盖了新的try / catch SQL Server 2005+中的错误处理能力。

There's a disclaimer at the front that it was originally written for SQL Server 2000, but it covers the new try/catch error handling abilities in SQL Server 2005+ as well.