pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Can I specify a SCHEMA in the ODBC string?
5+ messages / 5 participants
[nested] [flat]

* Can I specify a SCHEMA in the ODBC string?
@ 2004-02-23 10:39 Rachel Willmer <rachel_lists@willmer.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Rachel Willmer @ 2004-02-23 10:39 UTC (permalink / raw)
  To: pgsql-odbc

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




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Can I specify a SCHEMA in the ODBC string?
@ 2005-06-13 18:53 Jon Farb <sawzall710@gmail.com>
  2005-06-16 09:28 ` Re: Can I specify a SCHEMA in the ODBC string? Ludek Finstrle <ludek.finstrle@pzkagis.cz>
  2005-06-17 12:47 ` Re: Can I specify a SCHEMA in the ODBC string? vladimir <bouncer@nowhere.org>
  0 siblings, 2 replies; 5+ messages in thread

From: Jon Farb @ 2005-06-13 18:53 UTC (permalink / raw)
  To: pgsql-odbc

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Can I specify a SCHEMA in the ODBC string?
  2005-06-13 18:53 Re: Can I specify a SCHEMA in the ODBC string? Jon Farb <sawzall710@gmail.com>
@ 2005-06-16 09:28 ` Ludek Finstrle <ludek.finstrle@pzkagis.cz>
  1 sibling, 0 replies; 5+ messages in thread

From: Ludek Finstrle @ 2005-06-16 09:28 UTC (permalink / raw)
  To: Jon Farb <sawzall710@gmail.com>; +Cc: pgsql-odbc

> 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.



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Can I specify a SCHEMA in the ODBC string?
  2005-06-13 18:53 Re: Can I specify a SCHEMA in the ODBC string? Jon Farb <sawzall710@gmail.com>
@ 2005-06-17 12:47 ` vladimir <bouncer@nowhere.org>
  2005-06-17 19:45   ` Re: Can I specify a SCHEMA in the ODBC string? Noel <nobody@nowhere.com>
  1 sibling, 1 reply; 5+ messages in thread

From: vladimir @ 2005-06-17 12:47 UTC (permalink / raw)
  To: pgsql-odbc

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Can I specify a SCHEMA in the ODBC string?
  2005-06-13 18:53 Re: Can I specify a SCHEMA in the ODBC string? Jon Farb <sawzall710@gmail.com>
  2005-06-17 12:47 ` Re: Can I specify a SCHEMA in the ODBC string? vladimir <bouncer@nowhere.org>
@ 2005-06-17 19:45   ` Noel <nobody@nowhere.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Noel @ 2005-06-17 19:45 UTC (permalink / raw)
  To: pgsql-odbc

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.





^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2005-06-17 19:45 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 10:39 Can I specify a SCHEMA in the ODBC string? Rachel Willmer <rachel_lists@willmer.org>
2005-06-13 18:53 Re: Can I specify a SCHEMA in the ODBC string? Jon Farb <sawzall710@gmail.com>
2005-06-16 09:28 ` Ludek Finstrle <ludek.finstrle@pzkagis.cz>
2005-06-17 12:47 ` vladimir <bouncer@nowhere.org>
2005-06-17 19:45   ` Noel <nobody@nowhere.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox