 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dennis Ho Guest
|
Posted: Fri Apr 16, 2004 12:04 pm Post subject: How control commit and rollback for TClientDataSet or TSimpl |
|
|
Hi,
I have a list of DataSets need to applyupdates to the database, also a set
of store procedures need to execute after all DataSets are successfully
updated to the database. If there are any error occurs when applyupdates or
execute store procedure, I need to rollback all the transactions as a whole.
1. TClientDataSet and TSimpleDataSet seems to commit itself after successful
applyupdates, how can I stop it?
2. How can I keep the delta value until all the updates are done? (so that I
can rollback the database, when error occurs.).
3. How to commit and clear the delta value in all datasets after all the
updates are done successfully?
Please Help.
Thanks.
Regards,
Dennis Ho
|
|
| Back to top |
|
 |
Dan Miser Guest
|
Posted: Sat Apr 17, 2004 10:33 pm Post subject: Re: How control commit and rollback for TClientDataSet or TS |
|
|
"Dennis Ho" <@ .> wrote
| Quote: | I have a list of DataSets need to applyupdates to the database, also a set
of store procedures need to execute after all DataSets are successfully
updated to the database. If there are any error occurs when applyupdates
or
execute store procedure, I need to rollback all the transactions as a
whole.
Take a look at this FAQ entry: |
http://www.distribucon.com/faq/04.html
And for the solution, look to MidEss. Specifically, the CDSUtil unit. I have
some updates that I need to commit to that unit soon.
http://sourceforge.net/projects/midess/
You can see why/how this unit it was developed by reading this:
http://community.borland.com/article/0,1410,22571,00.html
--
Dan Miser
http://www.distribucon.com
|
|
| Back to top |
|
 |
|
|
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
|
|