Article View: borland.public.cppbuilder.database.ado
Article #3269Re: Problem with Access Databases
From: Lee Gan
Date: Thu, 10 Oct 2002 15:36
Date: Thu, 10 Oct 2002 15:36
50 lines
2906 bytes
2906 bytes
Thanks a lot for the advise. The ParamCheck works like a charm. What I found
is that once the ParamCheck is disabled, it does not matter you apply () or
[] or any other combinations to the table names. Further, the
ParamCheck=false must be before the SQL string is added. Thanks again.
Lee Gan
"Vassiliev V.V." <news@vassilievvv.mtu-net.ru> wrote in message
news:3da53264@newsgroups.borland.com...
> Try set ParamCheck in TADODataset (TADOQuery, TADOTable etc.) to false.
You
> should also use brackets ([abc:def...]).
>
> ----------------------------------------------------------------
> Regards,
> Viatcheslav V. Vassiliev
> http://www.oledbdirect.com
> The fastest way to access MS SQL Server and MS Jet (MS Access) databases.
>
>
> "Lee Gan" <leegan@hotmail.com> �������/�������� � �������� ���������:
> news:3da4aa48$1@newsgroups.borland.com...
> > I posted this message sometime ago on this forum and did not get a
> workable
> > answer. Now I am trying again.
> >
> > I have an Access 97 database which has a table named something like
> > abc:def:gh. Then I try to query against the table using a TADOQuery. The
> SQL
> > statement looks like
> >
> > SELECT * FROM abc:def:gh WHERE conditions
> >
> > No problem with compilation and linking. However, whenever this SQL is
> > executed, an error message pops up asking me to specify parameters abc,
> def
> > and gh. This is simply because the compiler treats the table name as
three
> > parameters. I have tried to put "abc:def:gh", 'abc:def:gh',
[abc:def:gh],
> > {abc:def:gh} and many other things for the table name, no success. This
> > problem goes away when I manually change the table name to abcdefgh.
> >
> > Can anybody help me? Many thanks in advance. BTW, I use BCB 6 Pro.
> >
> > Lee Gan
> >
> >
>
>
Technical Details
Message-ID:
<3da59e8c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!telocity-west!TELOCITY!news.stealth.net!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3da4aa48$1@newsgroups.borland.com> <3da53264@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,ccea621b0887f8c X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-10-10 08:42:09 PST From: "Lee Gan" <leegan@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3da4aa48$1@newsgroups.borland.com> <3da53264@newsgroups.borland.com> Subject: Re: Problem with Access Databases Date: Thu, 10 Oct 2002 09:36:44 -0600 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 207.34.102.197 Message-ID: <3da59e8c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1034264204 207.34.102.197 (10 Oct 2002 08:36:44 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!telocity-west!TELOCITY!news.stealth.net!news.stealth.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail