Обсуждение: Can I specify a SCHEMA in the ODBC string?

Поиск
Список
Период
Сортировка

Can I specify a SCHEMA in the ODBC string?

От
Rachel Willmer
Дата:
I'd like to export a table from MS Access to PostgreSQL. By default, it
puts it in the public schema, but I'd like to specify an alternate one.

Is this possible? If so, what's the syntax? Is the syntax for ODBC
connection strings documented anywhere? I've googled for this info, but
unsuccessfully.

Any pointers welcome
Thanks
Rachel


Re: Can I specify a SCHEMA in the ODBC string?

От
Jon Farb
Дата:
Does anyone have a solution to the below archived message?  I'm
running into the same issue.

Thanks in advance

JF


Original Message
----------------------------------------
    * From: Rachel Willmer <rachel_lists ( at ) willmer ( dot ) org>
    * To: pgsql-odbc ( at ) postgresql ( dot ) org
    * Subject: Can I specify a SCHEMA in the ODBC string?
    * Date: Mon, 23 Feb 2004 10:39:39 +0000

I'd like to export a table from MS Access to PostgreSQL. By default,
it puts it in the public schema, but I'd like to specify an alternate
one.
Is this possible? If so, what's the syntax? Is the syntax for ODBC
connection strings documented anywhere? I've googled for this info,
but unsuccessfully.

Any pointers welcome
Thanks
Rachel

Re: Can I specify a SCHEMA in the ODBC string?

От
Ludek Finstrle
Дата:
> Does anyone have a solution to the below archived message?  I'm
> running into the same issue.

set search_path = ...

It's well described in postgresql doc.

Luf

> I'd like to export a table from MS Access to PostgreSQL. By default,
> it puts it in the public schema, but I'd like to specify an alternate
> one.
> Is this possible? If so, what's the syntax? Is the syntax for ODBC
> connection strings documented anywhere? I've googled for this info,
> but unsuccessfully.

Re: Can I specify a SCHEMA in the ODBC string?

От
Noel
Дата:
On Fri, 17 Jun 2005 13:47:35 +0100, vladimir <bouncer@nowhere.org>
wrote:

>> Is this possible? If so, what's the syntax? Is the syntax for ODBC
>> connection strings documented anywhere? I've googled for this info,
>> but unsuccessfully.
>I think that you have to specify the schema in the select query:
>
>SELECT FROM myschema.mytable;

Or you can set the schema search path in Page 2 of the Datasource
Configuration window for the ODBC datasource.  Simply put

SET SEARCH_PATH to myschema, public in the Connect Settings box.



Re: Can I specify a SCHEMA in the ODBC string?

От
vladimir
Дата:
> Is this possible? If so, what's the syntax? Is the syntax for ODBC
> connection strings documented anywhere? I've googled for this info,
> but unsuccessfully.
I think that you have to specify the schema in the select query:

SELECT FROM myschema.mytable;

Vlad

PS: It should be a pass-through query (set in query options).