Subject | Re: Problem with Firebird used in MS Access via ODBC |
---|---|
Author | frische_brise2003 |
Post date | 2003-10-15T07:35:40Z |
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
what you sent me is a correct SQL statement but, from MS Access, I can
use it only in a SQL-pass-through query. A pass-through query will not
be modified by the JetEngine. My intention was, to create a 'normal'
(not a pass-through) query.
The problem is, that a pass-through query stores the connection string
including UID and PWD used to connect to the FB DB. If UID and/or PWD
changes, all pass-through queries have to be modified.
So you don't know any other way to make it work, do you?
Jurgen
wrote:
> >The query in MS Access is:LEFT
> >
> >SELECT ADDRESS.NAME, STATUS.STATUSNAME, COUNTRY.COUNTRYNAME
> >FROM (ADDRESS LEFT JOIN STATUS ON ADDRESS.STATUSID = STATUS.ID)
> >JOIN COUNTRY ON ADDRESS.COUNTRYID = COUNTRY.ID;interface?'
>
> Two problems here: (1) bad syntax and (2) ambiguity
> Is this the actual query statement that gets sent through the ODBC
>sure
> You need to get it to accept correct, standard, unambiguous SQL:
>
> SELECT
> ADDRESS.NAME,
> STATUS.STATUSNAME,
> COUNTRY.COUNTRYNAME
> FROM ADDRESS
> LEFT JOIN STATUS
> ON ADDRESS.STATUSID = status.STATUS.ID
> LEFT JOIN COUNTRY
> ON ADDRESS.COUNTRYID = country.COUNTRY.ID;
>
> This query is going to return (potentially) a lot of nulls - I'm not
> whether you regarded that as a problem or not. If you don't wantthe nulls
> then you don't want the outer joins...Hello Helen,
what you sent me is a correct SQL statement but, from MS Access, I can
use it only in a SQL-pass-through query. A pass-through query will not
be modified by the JetEngine. My intention was, to create a 'normal'
(not a pass-through) query.
The problem is, that a pass-through query stores the connection string
including UID and PWD used to connect to the FB DB. If UID and/or PWD
changes, all pass-through queries have to be modified.
So you don't know any other way to make it work, do you?
Jurgen