Thread: ODBC doesn't gets schemas

ODBC doesn't gets schemas

From
El Cuy Volador
Date:
Dear all:

This is my first post. I am using Postgresql 8.2 and am triying to
connect from some apps (Codecharge Studio, Excel, OpenOffice Base, etc.)
to a database using a ODBC connection. The problem is that the tables do
not appear related to any schema (i.e. myschema.mytable). It just
retrieves only the plain table name (mytable) and in some cases it
appears only the tables from the public schema (for example in
OpenOffice Base). In the last case I have solved instaling an extension
 in OpenOffice, but in the other applications it is necessary to
retrieve the schema name along with the table.

¿Is there any configuration I am missing in the ODBC connection? or is a
features not implemented yet.

Thanks a lot and best regards,

Alvaro

Platform details: Windows XP SP1, Postgresql 8.2 with postgis extension.
ODBC connector: 8.02.04.00.



Re: ODBC doesn't gets schemas

From
Richard Broersma Jr
Date:
--- El Cuy Volador <cybercuy@gmail.com> wrote:

> The problem is that the tables do
> not appear related to any schema (i.e. myschema.mytable). It just
> retrieves only the plain table name (mytable) and in some cases it
> appears only the tables from the public schema (for example in
> OpenOffice Base).

I am not sure I completely understand your problem,  but my experiece is that schema name are
recognized by the ODBC driver.  However, in my case I use MS Access, when I use ODBC to link table
from the PostgreSQL server the resolved schema.table names in Access are "schema_table".

I am not sure what Open Office does in this regard.

Regards,
Richard Broersma Jr.

Re: ODBC doesn't gets schemas

From
Richard Wesley
Date:

On Jun 18, 2007, at 7:44 AM, Richard Broersma Jr wrote:

I am not sure I completely understand your problem,  but my experiece is that schema name are
recognized by the ODBC driver.  However, in my case I use MS Access, when I use ODBC to link table
from the PostgreSQL server the resolved schema.table names in Access are "schema_table".

We use the OLE DB wrapper for ODBC to talk to the driver and it appears to return both schema and table names.  It doesn't set some of the flags (e.g. system tables) but there must be some way to get multi-part names back.  MS SQL Server has hierarchical names and it presumably works with Access...
________________________________________________________
Richard Wesley          Senior Software Developer            Tableau Software