X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 284CE329F2F for ; Sun, 3 Oct 2004 21:43:02 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55274-03 for ; Sun, 3 Oct 2004 20:42:51 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by svr1.postgresql.org (Postfix) with ESMTP id EB882329F29 for ; Sun, 3 Oct 2004 21:42:51 +0100 (BST) Received: by mproxy.gmail.com with SMTP id 73so3325466rnk for ; Sun, 03 Oct 2004 13:42:48 -0700 (PDT) Received: by 10.38.88.53 with SMTP id l53mr4623405rnb; Sun, 03 Oct 2004 13:42:48 -0700 (PDT) Received: by 10.38.88.4 with HTTP; Sun, 3 Oct 2004 13:42:48 -0700 (PDT) Message-ID: <27a5b7d104100313427b82cc71@mail.gmail.com> Date: Sun, 3 Oct 2004 16:42:48 -0400 From: Amir Zicherman Reply-To: Amir Zicherman To: Dave Page Subject: Re: \n converted to \r\n Cc: Jeff Eckermann , ben.trewern@mowlem.com, pgsql-odbc@postgresql.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200410/20 X-Sequence-Number: 4495 even simpler, thanx dave. On Fri, 1 Oct 2004 21:11:33 +0100, Dave Page 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. >