Article View: borland.public.interbase.sql
Article #11175Re: copy tables between databases
From: CleverComponents Team
Date: Sat, 07 Dec 2002 01:29
Date: Sat, 07 Dec 2002 01:29
64 lines
2916 bytes
2916 bytes
Hello Dietrich, What about solution #4 - use TIBSQL and BatchInput, BatchOutput, InputRawFile,OutputRawFile features? The fastest and the easyest way so far. Steps: 1) Create OutputRawFile with TIBSQL.BatchOutput 2) zip it and send (you can use ZLib) 3) unzip it on a client a client side into InputRawFile 4) Start transaction, empty your table, load data from InputRawFile using TIBSQL.BatchInput and Commit Whole code size will be about 100 lines max. Best regards, CleverComponents Team www.CleverComponents.com info@CleverComponents.com "D.v.Witzleben" <info@witzleben-edv.de> wrote in message news:3df0d44d@newsgroups.borland.com... > Hi > > I build the following application: > > CENTRAL-APP: They are able to Insert/Modify (not delete) Item-Data (table > ITEM). Then this data has to be send to the shops via 64K Modem. > > SHOPS-APP: They receive ITEM-Table with new items, sell products into the > SOLD-Table, and are only able to read the ITEM-table. > > I figured following solutions: > > 1: Replication on record-basis for table ITEM through delphi / IBX, works > fine. > PROBLEM: It takes 3-5 hours a day. Also the destination DB grows > extremely in size. > > 2: Export table ITEM with Delphi/BDE/Batchmove into ITEM.DBF, import into > SHOP-APP the same way. > PROBLEM: The destination DB grows extremely in size, when you close it, it > seems to hang, after a while it does close. > > 3: "Create table itemexternal external file ITEMEXTERNAL.TXT" in Interbase, > insert data with insert into itemexternal select * from item. In the > SHOPS-APP there is no internal ITEM-table, I use the external > ITEMEXTERNAL-table directly for read-purposes. Works very fine. > PROBLEM: No BLOB-DATA! Also I can't copy the file while someone is working > on the DB, since it's locked. > > Question: Any idea on problem 1-3? > > Thanks, > > Dietrich > >
Technical Details
Message-ID:
<3df14ea9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!gatel-ffm!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3df0d44d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114a0e,c3b2366d6a3e9489 X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-06 17:39:09 PST From: "CleverComponents Team" <info@clevercomponents.com> Newsgroups: borland.public.interbase.sql References: <3df0d44d@newsgroups.borland.com> Subject: Re: copy tables between databases Date: Fri, 6 Dec 2002 17:29:54 -0800 Lines: 66 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 216.103.70.227 Message-ID: <3df14ea9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1039224489 216.103.70.227 (6 Dec 2002 17:28:09 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!gatel-ffm!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail