Article View: borland.public.cppbuilder.database.ado
Article #1925Re: Quickest method to Transfer data from DB to another
From: Daniel Stevenson
Date: Wed, 21 Jan 2004 01:21
Date: Wed, 21 Jan 2004 01:21
58 lines
3164 bytes
3164 bytes
I'm currently using SQL statements to perform that transfer of data as they are far quicker than inserting() and posting() using ADO, but I was just seeing if their were any quicker ways of transferring data within Access rather than extracting a record at a time within database1 and transfering it into the same table within database2 as a new record. it would be great if i could get all the field data for a single field within a table and bulk copy that across, then move to the next field within the same table and do the same, this way I could discard of the fields that are no longer relevent or available within the next database. "YangKai Liu" <yangkai.liu@burkelee.com> wrote in message news:40027217@newsgroups.borland.com... > Is there anything preventing you from using SQL statement to perform the > operation? If not, just use TADOQuery or TADOCommand as the vehicle to send > the SQL statement to your DBMS, then it's done. > > > "Daniel Stevenson" <d.stevenson@ocreage.com.au> �b�l�� > news:400222b2@newsgroups.borland.com �����g... > > I'm currently looking into alternate (and hopefully faster) ways of moving > > data from one database to another where the field names are the same in > each > > table and in some situations where some fields are not present within the > > new database. > > > > The original database has tables that are related to one another (ie. are > in > > master/detail relationship) and therefore data integrity needs to be > > maintained > > > > I currently move one record across to the new database at a time, then > check > > all other tables for records that are related to the master record and > copy > > those across before incrementing the master record, therefore keeping all > > the records in their correct relationship. > > I'm finding this method very slow especially with a database holding over > > 50,000 records. > > > > I was wondering if there was a bulk method of copying data or an SQL > method > > that might be faster. > > > > I'm currently using BCB6 with ADO and an Access database. > > > > Thanks > > > > > >
Technical Details
Message-ID:
<400dd418$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<400222b2@newsgroups.borland.com> <40027217@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,3afb015c65de2408 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-20 17:39:45 PST From: "Daniel Stevenson" <d.stevenson@ocreage.com.au> Newsgroups: borland.public.cppbuilder.database.ado References: <400222b2@newsgroups.borland.com> <40027217@newsgroups.borland.com> Subject: Re: Quickest method to Transfer data from DB to another Date: Wed, 21 Jan 2004 12:21:28 +1100 Lines: 60 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 202.174.228.150 Message-ID: <400dd418$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074648088 202.174.228.150 (20 Jan 2004 17:21:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail