🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Copying a table from one connection to another

#2776
From: Viatcheslav V. Vassiliev
Date: Fri, 14 Mar 2003 07:05
37 lines
2244 bytes
Check that c:\labels.mdb exists, table CurrentWOwithLabelIPN exists in
database you are connected to and that you escape "\" in your code, inside
your code command should look:

SELECT * INTO CurrentWOwithLabelPN IN 'c:\\labels.mdb' FROM
CurrentWOwithLabelPN

----------------------------------------------------------------
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.

"Jonny" <jonny@nospam.jonnywilk.co.uk> �������/�������� � ��������
���������: news:3e70c170@newsgroups.borland.com...
> Hi, I need to copy some data from one ADO connection table to another.
>
> In access I could wite an SQL statement like this:
>
> SELECT * INTO CurrentWOwithLabelPN IN 'c:\labels.mdb' FROM
> CurrentWOwithLabelPN;
>
> But If i try this on an ADO connection it just hangs
>
> I've also tried using the Clone on a dataset, but this doesn't seem to
work
> correctly either.  Also i have tried setting a tables recordset to another
> one, but this seems to mess up too
>
> Any help would be GREATLY appreciated
>
> Thanks
>
> Jonny
>
>
Technical Details
Message-ID: <3e719908$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3e70c170@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,cd9b32aa65d82f25
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-03-14 01:10:28 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e70c170@newsgroups.borland.com>
Subject: Re: Copying a table from one connection to another
Date: Fri, 14 Mar 2003 10:05:43 +0300
Lines: 39
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: <3e719908$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047632136 213.247.201.57 (14 Mar 2003 00:55:36 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail