April 10, 2004 at 3:09 pm
I need your help.
I am using this from inside my SP to output to a data file
EXEC master..xp_cmdshell 'bcp xdatabase..h837x out C:\FileExtract.txt -c'
It works fine, EXCEPT I am ending up with random hex '200D0A's in the output file. These appear as separate lines.
Can anyone explain how they got there and what I need to do to get rid of them?
Thanks in advance.
Phil Krieg
April 12, 2004 at 10:56 pm
The "-c" parameter, as you are probably aware, uses the CHAR format. What you might not know is that it adds the "newline" character as well. Hex "0D" is a carriage return. Hex "0A" is the linefeed character. Hex "20" is the space character.
Without more information, that's the most I can do for you.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply