Why StartTransaction?
Posted: Tue 21 Nov 2006 07:53
Hi,
I find that I can still successfully commit data to the database with the following codes even though I don't put a StartTransaction in the codes.
Why use StartTransaction?
Is it because I'm in a client-server environment?
Then in what condition it is a must to use StartTransaction?
Thanx
dm
I find that I can still successfully commit data to the database with the following codes even though I don't put a StartTransaction in the codes.
Why use StartTransaction?
Code: Select all
oraTable.ApplyUpdates; // write data from memory to database
oraTable.Session.Commit; // commit data
oraTable.CommitUpdates; // clear cached memory
Then in what condition it is a must to use StartTransaction?
Thanx
dm