I have 2 very simple update statements that I need to use inside of a stored procedure. I want to use a transaction to rollback if either one of these updates should fail. Could someone please give me a sample to go by or point me in the right direction? I cannot seem to find what I need. I have no code at this point with exception of the two updates.
After the transaction completes, I need the affected rows selected into an OUT variable from the procedure so that I can use it in my application code.