pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How can i set several databases using Win ODBC
4+ messages / 4 participants
[nested] [flat]

* How can i set several databases using Win ODBC
@ 2002-08-29 18:18  Nicolas Briones <nbr@designers.cl>
  0 siblings, 1 reply; 4+ messages in thread

From: Nicolas Briones @ 2002-08-29 18:18 UTC (permalink / raw)
  To: pgsql-odbc

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





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

* Re: How can i set several databases using Win ODBC
@ 2002-08-29 19:09  Corey Gibbs <cgibbs@westmarkproducts.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Corey Gibbs @ 2002-08-29 19:09 UTC (permalink / raw)
  To: 'Nicolas Briones' <nbr@designers.cl>; pgsql-odbc

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



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

* Re: How can i set several databases using Win ODBC
@ 2002-08-29 22:51  Keith Gray <keith@heart.com.au>
  parent: Nicolas Briones <nbr@designers.cl>
  0 siblings, 0 replies; 4+ messages in thread

From: Keith Gray @ 2002-08-29 22:51 UTC (permalink / raw)
  To: Nicolas Briones <nbr@designers.cl>; +Cc: pgsql-odbc

I suggets you use FILE DSN not USER or SYSTEM if possible.

Nicolas Briones 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
> 


-- 

Keith Gray
Technical Services Manager
Heart Consulting Services




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

* Re: How can i set several databases using Win ODBC
@ 2002-08-30 07:03  Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 4+ messages in thread

From: Dave Page @ 2002-08-30 07:03 UTC (permalink / raw)
  To: Nicolas Briones <nbr@designers.cl>; pgsql-odbc



> -----Original Message-----
> From: Nicolas Briones [mailto:nbr@designers.cl] 
> Sent: 29 August 2002 19:18
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] How can i set several databases using Win ODBC
> 
> 
> 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...

It's not. I have 10 or more System DSNs setup. I would be inclined to
check your ODBC installation and that you have relevant permissions to
add a DSN. psqlODBC isn't clever about reporting that it failed to
update registry keys if you don't have permission to do so (i.e. it's a
system DSN and you're not an administrator).

Regards, Dave



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


end of thread, other threads:[~2002-08-30 07:03 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-08-29 18:18 How can i set several databases using Win ODBC Nicolas Briones <nbr@designers.cl>
2002-08-29 22:51 ` Keith Gray <keith@heart.com.au>
2002-08-29 19:09 Re: How can i set several databases using Win ODBC Corey Gibbs <cgibbs@westmarkproducts.com>
2002-08-30 07:03 Re: How can i set several databases using Win ODBC Dave Page <dpage@vale-housing.co.uk>

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