Hi
I have two stored procedures A & B. Stored procedure B is calling from A. I want to implement the transaction in such a way that, if any error happened in A, all the operations from A should be rolled back but all the operations done by B should be committed.
See the scenario below.
Procedure A
Begin Transaction
Begin Try
Do some oprations (Operations 1)
Call procedure B (Operations 2)
Do some error operations
Commit transaction
End Try
BEgin Catch
Rollback Transaction
End Catch
In the above scenario the Operations 1 should be rolled back and Operations 2 should be committed in procedure B.
Is it possible to implement this scenario ?
Thanks in advance.
Maju
MJVP