I am starting to use the Begin/Commit in some code. In the attached sample code which I was studying, I have some doubts.
Would you normally put the Rollback instruction in the error routine? I assume it is in the If statement for example purposes.
What happens if the error routine closes the procedure and neither a CommitTrans nor a Rollback command have been issued?
Thanks.