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 DDC14329E66 for ; Fri, 1 Oct 2004 18:51:40 +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 92072-06 for ; Fri, 1 Oct 2004 17:51:22 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 4A244329CDB for ; Fri, 1 Oct 2004 18:51:21 +0100 (BST) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Fri, 1 Oct 2004 13:43:30 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Fri, 1 Oct 2004 13:46:05 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id I4X2WB00.7Q2 for ; Fri, 1 Oct 2004 13:50:35 -0400 Received: from us.michelin.com (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Fri, 1 Oct 2004 13:50:35 -0400 Message-Id: <415D98E8.2030701@us.michelin.com> Date: Fri, 01 Oct 2004 13:50:32 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Amir Zicherman Cc: pgsql-odbc@postgresql.org Subject: Re: \n converted to \r\n References: <27a5b7d104100110264ece4118@mail.gmail.com> In-Reply-To: <27a5b7d104100110264ece4118@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------000003090202060602060904" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200410/11 X-Sequence-Number: 4486 This is a multi-part message in MIME format. --------------000003090202060602060904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 > > --------------000003090202060602060904 Content-Type: text/x-vcard; charset=utf8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America;ENG-IT adr;dom:;;2420 Two Notch Road;Lexington;SC;29071 email;internet:greg.campbell@us.michelin.com title:Systems Engineer tel;work:803-951-5561 tel;fax:803-951-5531 x-mozilla-html:FALSE version:2.1 end:vcard --------------000003090202060602060904--