Article View: borland.public.cppbuilder.database.ado
Article #3836Re: ADO:ACCESS and copy tables... ?
From: Vassiliev V.V.
Date: Thu, 06 Jun 2002 05:40
Date: Thu, 06 Jun 2002 05:40
50 lines
2666 bytes
2666 bytes
If I am not wrong you have an Access db with multiple tables and you want to copy one of these tables into another Access db. For this case i would do the next: 1. Create database TrasportDB.mdb - use ADOX. 2. Copy table from source table into TransportDB.mdb with Select * Into [TransportTable] in "FullPath\TransportDB.mdb" From SourceTable. 3. Deliver TransportDB.mdb on destination computer. 4. Copy table from TransportTable into DestTable with Select * Into [DestTable] From [TransportTable] in "FullPath\TransportDB.mdb". FullPath is the path to TransportDB.mdb and is different on source and dest computers. This way you will use native access methods that should be more reliable and faster than using ADO methods. If you need to perform more complete tasks you should use replication from Microsoft Jet and Replication objects (import this typelib). Regards, Vassiliev V.V. http://www.oledbdirect.com "Peter" <p.krenz@web.de> �������/�������� � �������� ���������: news:3cfdd7f1_1@dnews... > Hi, > > I want to copy one table from ACCESS database X in Tokio :o) to > another ACCESS database Y in Melburne ... or better the contents of table. > The structures of tables in X and Y are the same. > > How can I do that ? > > With dataset->SaveToFile(...) I can save the dataset (the content of table) > and after send it from Tokio to Melburne with dataset->LoadFromFile(...) I > can load > the contents, but it is not in the database Y. > > I've try it with dataset->UpdateBatch(arAll), but it doesn't work... > > (C++ Builder 5 pro ADO Express) > > thanks, > peter > > >
Technical Details
Message-ID:
<3cfefa40_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news.cs.utwente.nl!newshunter!cosy.sbg.ac.at!news.netway.at!newsfeed01.univie.ac.at!news-fra1.dfn.de!eusc.inter.net!news.stealth.net!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3cfdd7f1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,6741102e70bcafbc X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-06-05 23:02:59 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3cfdd7f1_1@dnews> Subject: Re: ADO:ACCESS and copy tables... ? Date: Thu, 6 Jun 2002 09:40:10 +0400 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.118.136.64 Message-ID: <3cfefa40_1@dnews> X-Trace: dnews 1023343168 62.118.136.64 (5 Jun 2002 22:59:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!news.cs.utwente.nl!newshunter!cosy.sbg.ac.at!news.netway.at!newsfeed01.univie.ac.at!news-fra1.dfn.de!eusc.inter.net!news.stealth.net!news.stealth.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews