Greetings.
I have an stored procedure that call others stored procedures. If one of them fails, i need all the process to rollback. Every stored procedure, in case of fail returns an exception, which is caught by the main sp. At this point it works well.
Then, when the exception is grabbed, i send a rollback statement, but all the changes made by the successful sp remains in the database.
Is there a way to rollback all the process?
Thanks in advance.
I have an stored procedure that call others stored procedures. If one of them fails, i need all the process to rollback. Every stored procedure, in case of fail returns an exception, which is caught by the main sp. At this point it works well.
Then, when the exception is grabbed, i send a rollback statement, but all the changes made by the successful sp remains in the database.
Is there a way to rollback all the process?
Thanks in advance.