pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Campbell <greg.campbell@us.michelin.com>
To: Amir Zicherman <amir.zicherman@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: \n converted to \r\n
Date: Fri, 01 Oct 2004 13:50:32 -0400
Message-ID: <415D98E8.2030701@us.michelin.com> (raw)
In-Reply-To: <27a5b7d104100110264ece4118@mail.gmail.com>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4306857@ratbert.vale-housing.co.uk>
	<27a5b7d104100110264ece4118@mail.gmail.com>

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 <dpage@vale-housing.co.uk> 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
>  
>

Attachments:

greg.campbell.vcf (text/x-vcard, 281B) download 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

view thread (10+ messages)  latest in thread

Message-ID: <415D98E8.2030701@us.michelin.com>
Permalink:  ../415D98E8.2030701@us.michelin.com/
Also on:    postgresql.org/message-id/415D98E8.2030701@us.michelin.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: greg.campbell@us.michelin.com, amir.zicherman@gmail.com
  Subject: Re: \n converted to \r\n
  In-Reply-To: <415D98E8.2030701@us.michelin.com>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4306857@ratbert.vale-housing.co.uk> <27a5b7d104100110264ece4118@mail.gmail.com> <415D98E8.2030701@us.michelin.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