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 8615432A219 for ; Fri, 1 Oct 2004 19:36:11 +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 32509-05 for ; Fri, 1 Oct 2004 18:36:09 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by svr1.postgresql.org (Postfix) with ESMTP id 00B7832A215 for ; Fri, 1 Oct 2004 19:36:08 +0100 (BST) Received: by mproxy.gmail.com with SMTP id 73so3223639rnk for ; Fri, 01 Oct 2004 11:36:08 -0700 (PDT) Received: by 10.38.208.76 with SMTP id f76mr799099rng; Fri, 01 Oct 2004 11:36:08 -0700 (PDT) Received: by 10.38.88.46 with HTTP; Fri, 1 Oct 2004 11:36:08 -0700 (PDT) Message-ID: <27a5b7d104100111361bbf027c@mail.gmail.com> Date: Fri, 1 Oct 2004 14:36:08 -0400 From: Amir Zicherman Reply-To: Amir Zicherman To: Greg Campbell Subject: Re: \n converted to \r\n Cc: pgsql-odbc@postgresql.org In-Reply-To: <415D98E8.2030701@us.michelin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <27a5b7d104100110264ece4118@mail.gmail.com> <415D98E8.2030701@us.michelin.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/13 X-Sequence-Number: 4488 Awesome, it works! i dig the method of using the udl file to show all available connection string properties. thanx a lot for your help. amir On Fri, 01 Oct 2004 13:50:32 -0400, Greg Campbell wrote: > If you are using a sufficiently up-to-date windows machine, you can make > the tools available on it tell you. I'm not sure if this requires VB or > Studio,.. but here goes. > > 1.Create a DSN entry to your database. > > 2. On your desktop create a new file -- text if fine. > 3. Save or Rename the file to test.udl -- don't worry when it barks > about changing the file extension or association. > 4. Right click on test.udl and choose open. It will open a wizard to > help you form an datasource connection string. You may have to choose > that you wish to use connection string. All the options available to > your ODBC driver will be placed into a string. > > When the wizard is complete, open the udl file with notepad -- or drag > and drop it onto a Notepad shortcut to open it. > > To your specific question the option parameter is > LFConversion=0 for no > LFConversion=1 for yes > > > > > Amir Zicherman wrote: > > >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 > > > > > >On Fri, 1 Oct 2004 15:10:10 +0100, Dave Page wrote: > > > > > >> > >> > >>>-----Original Message----- > >>>From: pgsql-odbc-owner@postgresql.org > >>>[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Jeff Eckermann > >>>Sent: 01 October 2004 14:57 > >>>To: Amir Zicherman; pgsql-odbc@postgresql.org > >>>Subject: Re: [ODBC] \n converted to \r\n > >>> > >>>I don't believe that there is any user-settable option to > >>>disable that functionality. > >>> > >>> > >>There is an 'LF <-> CR/LF Conversion' option on the second options > >>dialog. > >> > >>Regards, Dave > >> > >> > >> > > > >---------------------------(end of broadcast)--------------------------- > >TIP 8: explain analyze is your friend > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > > > >