BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How control commit and rollback for TClientDataSet or TSimpl

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Dennis Ho
Guest





PostPosted: Fri Apr 16, 2004 12:04 pm    Post subject: How control commit and rollback for TClientDataSet or TSimpl Reply with quote



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





PostPosted: Sat Apr 17, 2004 10:33 pm    Post subject: Re: How control commit and rollback for TClientDataSet or TS Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.