dbTalk Databases Forums  

bcp garbled characters with delimiter

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss bcp garbled characters with delimiter in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Scott A. Keen
 
Posts: n/a

Default bcp garbled characters with delimiter - 11-18-2003 , 12:36 AM






Hi, I have a very strange problem using bcp.

I'm using bcp to export data to text file. I have a .fmt format file which
specifies the layout.

The problem is that on one server, when it exports the data to a text file
using a delimiter, the data when opened with Notepad looks like garbage like
a series of high-ASCII black squares. But, the real data is really there. If
I open the text file in WordPad or another editor then it's completely
readable. If I copy the text file to another computer and open it with
Notepad, it still looks garbled.

However, exporting the exact same data without a delimiter, just using fixed
length fields, the data when opened with Notepad is completely readable.

What's even stranger is, on the other server running the same command, the
data looks fine in Notepad with or without delimiters. No black squares
ever!

What's going on here? Why does one server generate a text file that when
viewed with Notepad, all the data looks like black squares, and why does
this only happen on one server and why does it only happen when there is a
delimiter specified but not when it's fixed length? Please let me know what
I need to do to correct this anomaly on one server.

Scott



Reply With Quote
  #2  
Old   
Cindy Gross
 
Posts: n/a

Default RE: bcp garbled characters with delimiter - 12-02-2003 , 06:48 PM






Are the Windows code pages different on the two servers? If you open the
file in notepad and then try to "save as" does the "encoding" default to
ANSI or unicode?

Cindy Gross, MCDBA, MCSE
http://cindygross.tripod.com
This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.