[英]Maintaining transaction in stored procedure
I have two tables tblSOTransaction
and tblSOTranasactionDet
. 我有两个表
tblSOTransaction
和tblSOTranasactionDet
。
Database operation are being handled using different stored procedures for both tables. 正在使用两个表的不同存储过程来处理数据库操作。
How to maintain a single transaction between different calls to different stored procedures in both tables.. 如何在两个表中对不同存储过程的不同调用之间维护单个事务 。
You can execute both stored procedures inside one single transaction. 您可以在一个事务中执行两个存储过程。
So, basically you have to follow these steps: 因此,基本上,您必须遵循以下步骤:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.