🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #11207

Re: copy tables between databases

#11207
From: Dietrich v. Witzleben
Date: Wed, 11 Dec 2002 13:16
87 lines
3524 bytes
Hi,

I have tested your solution #4, but it does not support BLOBS !?
Message "BLOB NOT FOUND"

Also the database keeps growing with every delete / Insert

Any suggestions?

Dietrich




"CleverComponents Team" <info@clevercomponents.com> schrieb im Newsbeitrag
news:3df14ea9$1@newsgroups.borland.com...
>
> 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: <3df73ac3$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!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3df0d44d@newsgroups.borland.com> <3df14ea9$1@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-11 05:39:44 PST
Reply-To: "Dietrich v. Witzleben" <info@witzleben-edv.de>
From: "Dietrich v. Witzleben" <info@witzleben-edv.de>
Newsgroups: borland.public.interbase.sql
References: <3df0d44d@newsgroups.borland.com> <3df14ea9$1@newsgroups.borland.com>
Subject: Re: copy tables between databases
Date: Wed, 11 Dec 2002 14:16:40 +0100
Lines: 89
Organization: WITZLEBEN EDV
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: 217.82.11.60
Message-ID: <3df73ac3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039612611 217.82.11.60 (11 Dec 2002 05:16:51 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail