Article View: borland.public.cppbuilder.database.ado
Article #1282Re: Copying Excel Sheet to Access mdb as Table
From: Viatcheslav V. Vassiliev
Date: Tue, 14 Sep 2004 08:47
Date: Tue, 14 Sep 2004 08:47
31 lines
1843 bytes
1843 bytes
SELECT * INTO Sheet1 FROM [Sheet1$] IN "" [Excel 8.0;Database=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:41465b3c@newsgroups.borland.com...
> Hi I have troubles in Copying Excel Sheet to Accesss mdb as Table.
>
> I wrote as follows.
>
> ADOQuery2->SQL=Add("insert into access_table select * from
> [D:\exceldata.xls.sheet1];");
> ADOQuery2->ExecSQL();
>
> when it was excuted OleException erro occurs(it didn't works.)
>
> Thanks
>
> Using BCB6 Pro
> ---------------------------
> uchan
> $B!w(BOKAZAKI JAPAN
>
> ---------------------------
>
Technical Details
Message-ID:
<4146b03c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41465b3c@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> Subject: Re: Copying Excel Sheet to Access mdb as Table Date: Tue, 14 Sep 2004 12:47:56 +0400 Lines: 33 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: <4146b03c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1095151676 213.234.218.42 (14 Sep 2004 01:47:56 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail