🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: query in access

#285
From: billaras
Date: Wed, 04 Apr 2007 22:25
80 lines
3793 bytes
i was connecting by using the odbc drivers, if i use the jet ole db it says 
that there isnt installed isap...
if i select ace oledb i cant select the database that i want to open,(in the 
next page of the ado )

do you believe that the drivers that i select to connect to a database might 
play some role to why
some sql queries arent executed correctly?thks


"Vassiliev V. V." <support@oledbdirect.com> wrote in message 
news:46140804$1@newsgroups.borland.com...
> For Access and ADO it is better to use OLEDB provider for Access. 
> Connection string is:
>
> Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\test.mdb
>
> However for Access 2007 database connection string is:
>
> Provider=Microsoft.ACE.OLEDB.12.0;User ID=Admin;Data 
> Source=C:\test.mdb.accdb
>
> First provider (for Access 2003 and lower) in isntalled with most versions 
> of Windows and does not require MS Access, second one (for Access 2007) 
> requires MS Office 2007 installed on user's computer.
>
> Sincerely yours,
> Viatcheslav V. Vassiliev
>
>
> "billaras" <billaras1234@hotmail.com> �������/�������� � �������� 
> ���������: news:46102211@newsgroups.borland.com...
>> sorry i mistyped in my original post i used "," and it says the 
>> error,both "," and ";" doesnt work with
>> ado and access 2007. is there a bug with the odbc drivers and access 
>> 2007?
>>
>>
>> "Vassiliev V. V." <support@oledbdirect.com> wrote in message 
>> news:460f6f6c$1@newsgroups.borland.com...
>>> 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: <461425dd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <460f0952@newsgroups.borland.com> <460f6f6c$1@newsgroups.borland.com> <46102211@newsgroups.borland.com> <46140804$1@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: "billaras" <billaras1234@hotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <460f0952@newsgroups.borland.com> <460f6f6c$1@newsgroups.borland.com> <46102211@newsgroups.borland.com> <46140804$1@newsgroups.borland.com>
Subject: Re: query in access
Date: Wed, 4 Apr 2007 23:25:30 +0100
Lines: 82
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 131.227.231.187
Message-ID: <461425dd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1175725533 131.227.231.187 (4 Apr 2007 15:25:33 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail