Nested stored procedures containing TRY CATCH ROLLBACK pattern?

后端 未结 5 2124

I\'m interested in the side effects and potential problems of the following pattern:

CREATE PROCEDURE [Name]
AS
BEGIN
    BEGIN TRANSACTION
    BEGIN TRY
            


        
5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 10:54

    I am not a Linq guy (and neither is Erland), but he wrote the absolute bibles on error handling. Outside of the complications Linq might add to your problem, all of your other questions should be answered here:

    http://www.sommarskog.se/error_handling/Part1.html

    (Old link: http://www.sommarskog.se/error_handling_2005.html)

提交回复
热议问题