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 can I ApllyUpdates on multple ClientDataSets

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





PostPosted: Wed Jan 28, 2004 5:44 pm    Post subject: How can I ApllyUpdates on multple ClientDataSets Reply with quote



BlankOn the SERVER side I have : t1, t2, t3: TSQLTable,
they are linked via pv1, pv2, pv3: TDataSetProvider to
cds1, cds2 cds3: TClientDataSet on the CLIENT side.
Is it posible to make
cds1.ApplyUpdates;
cds2.ApplyUpdates;
cds3.ApplyUpdates;
in one transaction.


Back to top
Bill Todd (TeamB)
Guest





PostPosted: Wed Jan 28, 2004 11:11 pm    Post subject: Re: How can I ApllyUpdates on multple ClientDataSets Reply with quote



Possible but not easy. There is a example in the utilities unit of the
MIDESS project on Source Forge. There is also a paper by Dan Miser on
BDN that describes this.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Roberto Novakosky
Guest





PostPosted: Wed Jan 28, 2004 11:33 pm    Post subject: Re: How can I ApllyUpdates on multple ClientDataSets Reply with quote



I didin't try but i think is possible, but i think dificult with
provider/cds. The way: you must do a unique SET TRANSACTION to that
Client and to all INSERT, UPDATE you must to use the same trans, INSERT
MYTRANSACTION INTO..., UPDATE MYTRANSACTION YOURTABLE... but you will do
the commit manually at the end of all your changes.
To do this easily, a think that the best way is using a service from de
app server (Web Services). From the service you can control manually
your unique commit more easily. Maybe, the compnent RxMemory (RxLib) can
help you to cache on the client side the records to do the updates at
the same time by a unique SQLQuery.

Roberto Novakosky

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.