How to implement logging and error reporting in SQL stored procedures?

后端 未结 4 1784
刺人心
刺人心 2020-12-10 08:46

Background

I\'m currently working on a project that heavily utilizes SQL stored procedures. Some tables have as many as few hundred thousand procedu

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 09:31

    Here is a very complete article about Error Handling in Sql Server (for version 2000 though). For the new procedures, as Raj More said, just use try-catch.

提交回复
热议问题