Executing a stored procedure inside BEGIN/END TRANSACTION

前端 未结 7 1080
谎友^
谎友^ 2020-12-13 06:28

If I create a Stored Procedure in SQL and call it (EXEC spStoredProcedure) within the BEGIN/END TRANSACTION, does this other stored procedure also fall into the

7条回答
  •  执念已碎
    2020-12-13 06:40

    As Chris and James mentioned, you need to be careful when dealing with nested transactions. There is a set a very good articles on the subject of transactions written by Don Peterson on SQL Server Central , I would recommend having a read of those:

    Here there are:

    • part 1
    • part 2
    • part 3

提交回复
热议问题