Hi All
Need some help.
I use the BCP out command to transmit data from SQL Server database table and send it to flat files.
The spaces (varchar datatype in table) gets transmitted as spaces only.
When I use Linux command to get these files, out of 20,000 spaces , 1 space got interpreted as '@'.
Can you please tell me the reason behind this peculiar behaviour and how do I prevent it?
Software/Hardware used:
ASKED:
May 16, 2005 1:23 PM
UPDATED:
May 16, 2005 9:12 PM
Thanks for the quick response.
Correct, 19,999 are spaces and one ‘@’.
Info:
ColumnName varchar(25) Null
Yes, I ve tried it out in Windows as well as Unix. Did not encounter any such behaviour.
And yes its confirmed that there’s no ‘@’ in the data.
Thanks Again
Space ASCII 32 – Hex 20 versus @ ASCII 64 – Hex 40 or
0010 0000 versus 0100 0000.
1st question is it in the same place in the transferred file every time?
2nd – Are the frame sizes set the same on both machines?
If it is about the same place every time you have found a coincidence bug. You are getting a 1 bit transposition in a 40,000 nibble transfer. At one point in the transfer between Windows and Linux the difference in TCP/IP stacks combines with the different block sizes to transpose one bit and it must be occuring at a checksum boundary since you don’t report any communication errors.
Congratulations you found a bug, bad news I don’t know how to prevent it. I will watch expectantly for the solution.
Which version of Linux, Kernel, patches, etc.