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
removing not found URL from Google webmaster
Can I assign a recipient policy for distribution groups?
error when try to execute a procedure Operand type clash: varchar is incompatible with cursor
Additional help with my batch script to check a file's date prior to sending...
How to programmatically remove and then add a computer to a domain
vcb question
Access ODBC error after moving database
Error 404: No target servlet configured for uri
I need some help adding a Radiobutton to a preexisting Tkinter form
MS Access: Can a variable date be used in a title within a macro that exports a file?