🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Recordset1 to Recordset2

#708
From: Viatcheslav V. Vassiliev
Date: Thu, 21 Jul 2005 19:58
48 lines
2972 bytes
You should know exact query, in this case it is probably simple "select * 
from <table>". Jet supports cross-database queries, so you can write:

select * from <table> in "" [dBase 5.0;Database=c:\db_path]

This way you may construct SELECT INTO or INSERT INTO query - just <table> 
means table from current database, <table> in "" [...] means table in 
another database.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Igor Tsukanov" <darl@office.pib.com.ua> �������/�������� � �������� 
���������: news:42df388d$1@newsgroups.borland.com...
>
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote:
>>Manually - there are few lines of code to traverse recordset and assign 
>>all
>>columns. Or, better, use INSERT INTO or SELECT INTO command.
>>
>>//------------------------------------------
>>Regards,
>>Vassiliev V. V.
>>http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
>>ADO.Net
>>http://www.oledbdirect.com - The fastest way to access MS SQL Server,
>>MS Jet (Access) and Interbase (through OLEDB)
>>
>>
>>"Igor Tsukanov" <darl@office.pib.com.ua> �������/�������� � ��������
>>���������: news:42de5f2c$1@newsgroups.borland.com...
>>>
>>> How can I transfer(append all) the data from one recordset to other
>>> recordset per saltum? In my case I have one recordset with connection to
>>> Text-file, second - DBase-file. The both providers is MS Jet.
>>>
>>> Best regards
>>
>>
>
> The either recordset connected to own connection(ADOQuery1 connected to 
> ADOConnection1, ADOQuery2 to ADOConnection2 and because of I don't use the 
> select/insert etc.). 
Technical Details
Message-ID: <42dffe66@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42de5f2c$1@newsgroups.borland.com> <42dea75a$1@newsgroups.borland.com> <42df388d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,7dfae1f000c4ab63
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <42de5f2c$1@newsgroups.borland.com> <42dea75a$1@newsgroups.borland.com> <42df388d$1@newsgroups.borland.com>
Subject: Re: Recordset1 to Recordset2
Date: Thu, 21 Jul 2005 23:58:30 +0400
Lines: 50
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 85.93.138.132
Message-ID: <42dffe66@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1121975910 85.93.138.132 (21 Jul 2005 12:58:30 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail