Posted: Fri Aug 01, 2008 6:36 am Post subject: Commit the transaction at row level or at each update.
Voyager
Joined: 23 Jul 2008 Posts: 77
Hi,
I am accessing the database DB2 from WMB 6.1 through compute node.
Compute node has a poperty - Transaction
where option Automatic is at Message flow level
and option Commit is at Node level.
In my Program, i will be updating DB2 table almost 100 times. And i need to commit after every transaction is successful. Please let me know what should be done for this.
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
I didn't understand your question correctly but
First case if you are updating the database 100 times in a single transaction(in the compute node by using a loop) then you need to passthru('COMMIT') after each update statement.
If each update is a separate transaction then u can set transaction level to commit on the compute node which commits for each transaction.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum