Re: ADO Query problem



select Coach.[Position] from Coach

Position is keyword in Jet, at least in OLEDB/ADO.

//------------------------------------------
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)

"Ivelin Salabashev" <ivsal@xxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:4294b7ef@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi, all!
>
> I'm using Delphi 7.1 and ADOConnection to Access database (.mdb)
> (Provider=Microsoft.Jet.OLEDB.4.0)
> Connection is OK.
>
> I Create a table "Coach" (in Ms Access ) with one column name as
> Position(text datatype)
>
> Then I create an instance of TADOQuery with the following SQL:
> SELECT
> Coach.Position
> FROM
> Coach
>
> When I try to open this Query I get an EOLEException with message
> 'Unspecified eroor'.
>
> In Access 2003 there is no problem to execute this query.
> There is no problem with ODBC too.
>
> What is the problem?
>
> Thank you!
> Ivo
>
>


.



Relevant Pages

  • Re: GROUP BY vs DISTINCT
    ... In Jet, the second query uses the same plan than MS SQL ... MS SQL Server uses 1 UET! ...
    (microsoft.public.access.queries)
  • Re: upsizing to sql 2005
    ... A query in Access-Jet will be started and under the supervision of Jet, ... Jet syntax parsing and evaluation. ... so, in this case, into MS SQL Server. ...
    (microsoft.public.access.queries)
  • Re: how do i get a query to work?
    ... > I need to know what a Query is, ... MS Access and JET are one such ... This is a key aspect of RDBMSes: The use of SQL to ask questions ... about data in Tables through the Database Manager. ...
    (microsoft.public.access.gettingstarted)
  • Re: Problem with OpenRecordSet
    ... I don't know your Query but let's say the SQL String is something like: ... The JET database engine which handles the processing of data including ... When you run a Query through the Access interface, ...
    (microsoft.public.access.formscoding)
  • Re: Linked MS SQL Server Tables
    ... then a SQL Stored Procedure. ... Stored Procedure easily won out. ... Remember that your query can refer to a table stored natively in Jet, ...
    (microsoft.public.access.queries)