🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Copying Excel Sheet to Access mdb as Table

#1286
From: Viatcheslav V. Vassiliev
Date: Tue, 14 Sep 2004 14:39
50 lines
2251 bytes
Ah, yes. It treats d: as parameter. Set ParamCheck to false. Anyway there
should be no parameters in this query. BTW, d:\\test.xls (double slash), and
quotes missed

".... IN \"\" [Excel 8.0;Database=d:\\test.xls]"

//------------------------------------------
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)

"uchan" <usami_takeshi@yahoo.co.jp> $B'c'`'`'R'k'Z'](B/$B'c'`'`'R'k'Z']'Q(B $B'S(B
$B'_'`'S'`'c'd'q'g(B $B'c']'V'U'e'p'k'V'V(B:
news:4146f15a$1@newsgroups.borland.com...
>
>
> "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
> news:4146b03c@newsgroups.borland.com...
> > SELECT * INTO Sheet1 FROM [Sheet1$] IN "" [Excel 8.0;Database=test.xls]
>
>
>
>
> I tried but still got OleException error !
>
> Says ParameterObject is not correctly defined
>
> What should i do?
>
>
>
> I arrange my last code as follows:
>
>
>
>  ADOCommand2->CommandText =
>
>                     "SELECT * INTO data2 IN 'd:\\zwork2.mdb' FROM
[Sheet1$]
> IN  [Excel 8.0;Database=d:\test.xls]";
>
>  ADOCommand2->Execute();
>
>
>
> Help me please
>
Technical Details
Message-ID: <414702a0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41465b3c@newsgroups.borland.com> <4146b03c@newsgroups.borland.com> <4146f15a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,554dceaed0ee4c4e
X-Google-Attributes: gid10698b,public
X-Google-Language: Japanese,JIS
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <41465b3c@newsgroups.borland.com> <4146b03c@newsgroups.borland.com> <4146f15a$1@newsgroups.borland.com>
Subject: Re: Copying  Excel Sheet to Access mdb as Table
Date: Tue, 14 Sep 2004 18:39:28 +0400
Lines: 52
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.234.218.42
Message-ID: <414702a0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095172768 213.234.218.42 (14 Sep 2004 07:39:28 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail