pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Corey Gibbs <cgibbs@westmarkproducts.com>
To: 'Nicolas Briones' <nbr@designers.cl>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: How can i set several databases using Win ODBC
Date: Thu, 29 Aug 2002 12:09:34 -0700
Message-ID: <01C24F54.F0F17B80.cgibbs@westmarkproducts.com> (raw)

Howdy Nicholas,

Check into DSNless connections.  

Once the driver is installed, you can refer to it in your program

dim cn as ADODB.Connection
dim rs as ADODB.Recordset

cn.Open "Driver={PostgreSQL};Server=server4;Port=5432;Database=foobar;Uid=postgres;"

at that point you can point to another database besides foobar

Once the driver's been installed and registered on teh workstation, this method will work.

hope it helps 
corey


On Thursday, August 29, 2002 11:18 AM, Nicolas Briones [SMTP:nbr@designers.cl] wrote:
> I installed windows ODBC, configure everything, and all runs just fine.
> But now, i need to build another application, using another Postgres
> database, but ODBC only let me configure 1 database. If i try to add
> another postgres DSN, it just show me the first one, and can't add another
> one, only modify the first one... i refuse to accept that postgres ODBC be
> so limited...
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster



view thread (4+ messages)  latest in thread

Message-ID: <01C24F54.F0F17B80.cgibbs@westmarkproducts.com>
Permalink:  ../01C24F54.F0F17B80.cgibbs@westmarkproducts.com/
Also on:    postgresql.org/message-id/01C24F54.F0F17B80.cgibbs@westmarkproducts.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: cgibbs@westmarkproducts.com, nbr@designers.cl
  Subject: Re: How can i set several databases using Win ODBC
  In-Reply-To: <01C24F54.F0F17B80.cgibbs@westmarkproducts.com>
  References: <01C24F54.F0F17B80.cgibbs@westmarkproducts.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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