Article View: borland.public.cppbuilder.database.ado
Article #281Re: query in access
From: Vassiliev V. V.
Date: Sun, 01 Apr 2007 08:36
Date: Sun, 01 Apr 2007 08:36
34 lines
2107 bytes
2107 bytes
Access SQL used in ADO differs from SQL in Access itself. Correct syntax should be ',' instead of ';' as column separator: select a, b from peers where ab = 'a1' //------------------------------------------ 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) "billaras" <billaras1234@hotmail.com> �������/�������� � �������� ���������: news:460f0952@newsgroups.borland.com... > im trying to run the following simple query through an adoquery in > borland c++ builder 2006(the borland developer studio) > > ADOConnection1->Connected=true; > ADOQuery1->SQL->CommaText="SELECT a;b from peers where ab='a1'"; > ADOQuery1->Active=true; > > i get an error message saying operator missing between a and b.... > if i run it through access it runs normaly. > > i have connected the adoquery to an adoconnection and with odbc access > drivers to access database > > > any ideas? > thks >
Technical Details
Message-ID:
<460f6f6c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<460f0952@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,564e2646d22d00f X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII From: "Vassiliev V. V." <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <460f0952@newsgroups.borland.com> Subject: Re: query in access Date: Sun, 1 Apr 2007 12:36:25 +0400 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response X-Antivirus: avast! (VPS 000729-2, 31.03.2007), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 85.93.138.132 Message-ID: <460f6f6c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1175416684 85.93.138.132 (1 Apr 2007 01:38:04 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail