pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: David P. Lurie <dbase4@hotmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: postgresql equivalent to ms access parameter query
Date: Wed, 24 Mar 2004 07:05:03 -0800 (PST)
Message-ID: <20040324150503.1179.qmail@web20802.mail.yahoo.com> (raw)
In-Reply-To: <c3qoc6$jaq$1@sea.gmane.org>

--- "David P. Lurie" <dbase4@hotmail.com> wrote:
> 

> 
> I presume that a connection string would be
> something like:
> 
> connection_name.Open "Provider=ODBC; DSN=xxx
> ;DATABASE=yyy;"

At a minimum, you can get away with just "DSN=xxx". 
The database name would usually be specified in the
DSN, and ADO assumes ODBC by default.

I personally like the simplicity of working with
DSN's, but that does add a portability issue, being
the need to create a DSN wherever the application is
deployed.  That may or may not be an issue for you,
depending on the environment in which you are working.
 Some people like to do without DSN's by specifying
all necessary parameters in the connection string.  I
haven't messed much with this, but AFAIK the psqlodbc
driver will use default values for all settings not
explicitly specified, so you don't need to provide a
full connection string in any case.

> 
> An ADO recordset equivalent for the TABLE=zzz
> parameter could be:
> 
> recordset1.Open  ''zzz", connection_name

Yes.

> 
> 
> David P. Lurie
> 
> 
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose
> an index scan if your
>       joining column's datatypes do not match


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html



view thread (5+ messages)

Message-ID: <20040324150503.1179.qmail@web20802.mail.yahoo.com>
Permalink:  ../20040324150503.1179.qmail@web20802.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040324150503.1179.qmail@web20802.mail.yahoo.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: jeff_eckermann@yahoo.com, dbase4@hotmail.com
  Subject: Re: postgresql equivalent to ms access parameter query
  In-Reply-To: <20040324150503.1179.qmail@web20802.mail.yahoo.com>
  References: <c3qoc6$jaq$1@sea.gmane.org> <20040324150503.1179.qmail@web20802.mail.yahoo.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