Article View: borland.public.cppbuilder.database.ado
Article #3271Re: Problem with Access Databases
From: Vassiliev V.V.
Date: Fri, 11 Oct 2002 05:24
Date: Fri, 11 Oct 2002 05:24
72 lines
3737 bytes
3737 bytes
>it does not matter you apply () or
> [] or any other combinations to the table names
This depends on DBMS - MS SQL Server may have one behaviour, Oracle another
etc.
----------------------------------------------------------------
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:3da59e8c$1@newsgroups.borland.com...
> 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:
<3da66832@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!telocity-west!TELOCITY!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3da4aa48$1@newsgroups.borland.com> <3da53264@newsgroups.borland.com> <3da59e8c$1@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 23:06:03 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3da4aa48$1@newsgroups.borland.com> <3da53264@newsgroups.borland.com> <3da59e8c$1@newsgroups.borland.com> Subject: Re: Problem with Access Databases Date: Fri, 11 Oct 2002 09:24:17 +0400 Lines: 74 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.188.96.181 Message-ID: <3da66832@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1034315826 212.188.96.181 (10 Oct 2002 22:57:06 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed-west.nntpserver.com!hub1.meganetnews.com!nntpserver.com!telocity-west!TELOCITY!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail