🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Copying a table from one connection to another

#2777
From: Jonny
Date: Fri, 14 Mar 2003 18:04
54 lines
2771 bytes
Hi thanks for your reply

I managed to get it to work by rearranging the SQL statement

it now looks like this:

 SELECT * FROM CurrentWOwithLabelPN INTO
[c:\labels.mdb].CurrentWOwithLabelPN

Jonny


"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
news:3e719908$1@newsgroups.borland.com...
> 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: <b4t5ig$i4r$1$8300dec7@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
References: <3e70c170@newsgroups.borland.com> <3e719908$1@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 10:04:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail
From: "Jonny" <jonny@nospam.jonnywilk.co.uk>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Copying a table from one connection to another
Date: Fri, 14 Mar 2003 18:04:01 -0000
Lines: 56
Message-ID: <b4t5ig$i4r$1$8300dec7@news.demon.co.uk>
References: <3e70c170@newsgroups.borland.com> <3e719908$1@newsgroups.borland.com>
NNTP-Posting-Host: alanwilk.demon.co.uk
X-Trace: news.demon.co.uk 1047665040 18587 80.177.110.156 (14 Mar 2003 18:04:00 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 14 Mar 2003 18:04:00 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MSMail-Priority: Normal