🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3686

ClientDataSet - Apply updates to another dataset?

#3686
From: Joachim
Date: Fri, 05 Jul 2002 10:03
23 lines
2014 bytes
Hello,
I have a problem and I didn�t find out how to solve this. So it would be
very kind if somebody could help me please.
What I want to do is the following:
Two Access Databases. The first Database contains Data that can be changed.
The secont Database only contains the changed Data of the first Database
made by the user. In other words the changes should not been applied to the
first Database but recorded in the second Database.

I thought I could make this with a ClientDataSet which has an easy way to
record the changes. The ChangeLog. The user changes Data and when he clicks
on apply the Data is stored in the second Database. But how can I pass the
ChangeLog to the secont Database? The ClientDataSet is liked over a
DataSetProvider to a ADOQuery that contains the DataSet of the first
Database over ADOConnection1. When I make ApplyUpdates the Provider receives
an OnGetTableName event. There I can change the Table name but where can I
tell the Provider that the update is no update but an insert and the insert
should be made in the second Database(ADOConnection2)?

I hope somebody could help me with this.

Thanks in advance,
Joachim
Technical Details
Message-ID: <3d256dd8_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.maxwell.syr.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,daf4a4025c973e36,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-07-05 03:02:05 PST
From: "Joachim" <mfgjojo@gmx.de>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: ClientDataSet - Apply updates to another dataset?
Date: Fri, 5 Jul 2002 12:03:12 +0200
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 217.229.151.7
Message-ID: <3d256dd8_1@dnews>
X-Trace: dnews 1025863128 217.229.151.7 (5 Jul 2002 02:58:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.maxwell.syr.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews