- CJ Lai
- PowerBuilder
- Tuesday, 5 October 2021 03:17 PM UTC
Hi All
I would like to get your input on how to handle a series of database transactions (Insert/Update) in PowerBuilder 2017, R3.
In my application, a business process calls for 3 different database tables' insert/update. (Let's call them tables T1, T2, and T3. The flow of the process is to insert/update rows in T1 then to T2, then to T3)
Here is the requirement: only when T3 is successfully committed then to commit T2. Only when T2 is successfully committed, then to commit T1.
If at any point an error occurs, a rollback will be executed for the current table AND the table/s before.
How should I go about it to be most efficient and not jamming up the application to database I/O?
Thank you for your input
CJ
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.