From: Amir Zicherman <amir.zicherman@gmail.com>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: Jeff Eckermann <jeff_eckermann@yahoo.com>
Cc: ben.trewern@mowlem.com
Cc: pgsql-odbc@postgresql.org
Subject: Re: \n converted to \r\n
Date: Sun, 3 Oct 2004 16:42:48 -0400
Message-ID: <27a5b7d104100313427b82cc71@mail.gmail.com> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E430687A@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E430687A@ratbert.vale-housing.co.uk>
even simpler, thanx dave.
On Fri, 1 Oct 2004 21:11:33 +0100, Dave Page <dpage@vale-housing.co.uk> wrote:
>
>
> > -----Original Message-----
> > From: Amir Zicherman [mailto:amir.zicherman@gmail.com]
> > Sent: 01 October 2004 18:27
> > To: Dave Page
> > Cc: Jeff Eckermann; ben.trewern@mowlem.com; pgsql-odbc@postgresql.org
> > Subject: Re: [ODBC] \n converted to \r\n
> >
> > Hi, thax for your help. Took me a while to see where the
> > configuration options are because i'm not using a DSN. I
> > then put in a DSN to see if it comes with configuration
> > options and found what you guys were talking about. If i'm
> > just using a connection string in my code, is there any way
> > to configure this option? My code needs to be more generic
> > than to rely on me settign up DSNs for each database i want
> > to connect to. This is what i'm using to connect in the code:
> >
> > "DRIVER={" + DB_DRIVER +
> > "};DATABASE=" + dbName_ +
> > ";SERVER=" + dbIP_ +
> > ";PORT=" + dbPort_ +
> > ";UID=" + dbUser_ +
> > ";PWD=" + dbPassword_;
> >
> > thanx, amir
>
> The easy way to get the connection string is to create a DSN with the
> settings you want, switch on the commlog and then connect. The resulting
> logfile will show you the full connection string built.
>
> In pgAdmin II which used ODBC, we used to use the following:
>
> DRIVER={PostgreSQL};READONLY=0;PROTOCOL=6.4;FAKEOIDINDEX=0;SHOWOIDCOLUMN
> =0;ROWVERSIONING=0;SHOWSYSTEMTABLES=0;CONNSETTINGS=;FETCH=100;SOCKET=409
> 6;UNKNOWNSIZES=0;MAXVARCHARSIZE=254;MAXLONGVARCHARSIZE=65536;OPTIMIZER=1
> ;KSQO=1;USEDECLAREFETCH=0;TEXTASLONGVARCHAR=1;UNKNOWNSASLONGVARCHAR=0;BO
> OLSASCHAR=1;PARSE=0;CANCELASFREESTMT=0;EXTRASYSTABLEPREFIXES=dd_;
>
> Obviously we would add the database, server, username, password and port
> options to that.
>
> Regards,Dave.
>
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: amir.zicherman@gmail.com, dpage@vale-housing.co.uk, jeff_eckermann@yahoo.com, ben.trewern@mowlem.com
Subject: Re: \n converted to \r\n
In-Reply-To: <27a5b7d104100313427b82cc71@mail.gmail.com>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E430687A@ratbert.vale-housing.co.uk> <27a5b7d104100313427b82cc71@mail.gmail.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