I have a coded process for a SQL transaction that updates multiple tables :-
BEGIN TRANSACTION
update table 1
If succeeds
update table 2
if succeeds
COMMIT TRANSACTION
else
ROLLBACK TRANSACTION
endif
endif
On checking the data only table 2 is updated.
Please advise what I am missing.
SQL
Last Comment
Kyle Abrahams, PMP
8/22/2022 - Mon
Raja Jegan R
Above pseudocode seems to be fine..
Can you post your problematic script to check and confirm..
Can you post your problematic script to check and confirm..