Microsoft
Software
Hardware
Network
Question : Bcp Failing
I'm trying to bcp in from a very wide table with data I'm not too familiar with and getting this result:
C:\office\db\bcp>bcp mydb..test_2 in test.txt -S -Usa
-Pxx -c -b1000
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][SQL Native Client]String data, right truncation
SQLState = 22018, NativeError = 0
Error = [Microsoft][SQL Native Client]Invalid character value for cast specifica
tion
....
What switches should I be using? I've tried -k but had the same result.
jkavx
Answer : Bcp Failing
I see, it worked with wordpad.
now, from what I can see, the file contains newlines... which is deadly for bcp (in), you cannot do that.
you will need either some XML format, or another method to get the data copied.
Random Solutions
BE duplicate backup set job losing 'recurring' status
Re IP an Exchange Server?
Pausing a load using Loader object?
Microsoft, Windows, 2003, Event 11167 DNSAPI
Ruby string manipulation, easy enough?
Open COM1 with Python
Sound card "no audio device" error - no sound
unable to ftp 800mb file from New York to CA solaris 2.6 server
Wipe out hard drive data. Software recommendations.
Button Script not loading swf