Hi,
Hoping someone could please help.
I have 2 stored procedures that run one after the other.
They both insert a row but in 2 seperate tables.
However the rows are linked so if the row goes in the first table, it has to also go in the second table.
I know how to use Transactions within a stored procedure but is there anyway to run one SP, then run the second but if the second one fails, roll back to before the first sp?
Any help greatly appreciated
Thanks
JP
Hoping someone could please help.
I have 2 stored procedures that run one after the other.
They both insert a row but in 2 seperate tables.
However the rows are linked so if the row goes in the first table, it has to also go in the second table.
I know how to use Transactions within a stored procedure but is there anyway to run one SP, then run the second but if the second one fails, roll back to before the first sp?
Any help greatly appreciated
Thanks
JP