Hi Guys!
I would like to know how to use the "Begin Trans" (Commit and Rollback) Process because is the first time that I'm going to use one.... (and I don't want to block anything of course)
I have a Stored Procedure that do two steps:
In the first step Insert/update one table (Master) and in the second step Insert/update another table (Detail).
When my SP runs... both has to be consistent (I mean if the first table is updated and in the other one that is second step find an error I would like to Rollback everything)
Any recommendation to do this guys?
Thanks a Lot !
MR
I would like to know how to use the "Begin Trans" (Commit and Rollback) Process because is the first time that I'm going to use one.... (and I don't want to block anything of course)
I have a Stored Procedure that do two steps:
In the first step Insert/update one table (Master) and in the second step Insert/update another table (Detail).
When my SP runs... both has to be consistent (I mean if the first table is updated and in the other one that is second step find an error I would like to Rollback everything)
Any recommendation to do this guys?
Thanks a Lot !
MR