🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to add records to file

#2813
From: Viatcheslav V. Vassiliev
Date: Sun, 23 Mar 2003 10:49
35 lines
2154 bytes
Open 2 queries, one for temp.dat and second for data.dat. Iterate first
query and insert all records one-by-one into the second.

----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server, MS Jet (MS Access)
and Interbase (through OLEDB) databases.

"Sky" <akeehuang@163.net> �������/�������� � �������� ���������:
news:3e7d6bb6@newsgroups.borland.com...
> Hi
> I have save some records to a file by "SaveToFile" method.
> now i want add another records into this files,
> Does anyone can tell me how to do? TIA!
>
> the following is my code:
> TADOQuery *AQNormal;
> ...
> // AQNormal has connect a MS Access database successfully.
> if (AQNormal->Active)
> {
>     AQNormal->SaveToFile("C:\\data.dat");
> }
> AQNormal->LoadFromFile("C:\\temp.dat");
> AQNormal->Filtered = false;
> AQNormal->Filter = "Age > 50";
> AQNormal->filtered = true;
>
> // now i want add all the records in "C:\temp.dat"
> // to "C:\data.dat"
> // any hint?
>
>
Technical Details
Message-ID: <3e7d919d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3e7d6bb6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,b02201f0abfb83d7
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-03-23 03:09:04 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e7d6bb6@newsgroups.borland.com>
Subject: Re: How to add records to file
Date: Sun, 23 Mar 2003 13:49:13 +0300
Lines: 37
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: 213.247.201.57
Message-ID: <3e7d919d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048416669 213.247.201.57 (23 Mar 2003 02:51:09 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail