If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Help needed for bcp queryout

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-03, 10:55
Peter Bullock Peter Bullock is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Help needed for bcp queryout

Hi

I'm trying to export data using the bcp command with queryout into a simple text file, which I can then read into another application (not SQL).

It's working ok, except that some of the data contains non-ASCII characters, specifically newline or carriage returns so the lines in my text file are being split.

I don't seem to be able to find a solution to this problem - I can't use the native arguement because I don't want to read the data back into SQL and I've played around with -w option without success.

I don't really want to replace the non-ASCII characters first or try to detect and concatenate split lines after the text file has been created (both seem tacky to me!) Does anyone have a solution?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 10-17-03, 12:00
bstjean bstjean is offline
Registered User
 
Join Date: Sep 2002
Location: Montreal, Canada
Posts: 219
Re: Help needed for bcp queryout

Quote:
Originally posted by Peter Bullock
Hi

I'm trying to export data using the bcp command with queryout into a simple text file, which I can then read into another application (not SQL).

It's working ok, except that some of the data contains non-ASCII characters, specifically newline or carriage returns so the lines in my text file are being split.

I don't seem to be able to find a solution to this problem - I can't use the native arguement because I don't want to read the data back into SQL and I've played around with -w option without success.

I don't really want to replace the non-ASCII characters first or try to detect and concatenate split lines after the text file has been created (both seem tacky to me!) Does anyone have a solution?

Thanks.
Well if you have non ASCII characters, then I would definitely NOT recommend exporting to text files... unless you want problems and lots of work...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On