Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bcp error importing native sql server file

Status
Not open for further replies.

bluecjh

Programmer
Mar 12, 2003
385
0
0
SQL SERVER 2000.


bcp "highway.dbo.invoices" in "C:\Documents and Settings\home\My Documents\a1testn.Dat" -n -m"100" -S"HOME-51MUTE0LEJH"

i receive the dos screen errors

Code:
sqlState = 22001, NativeError = 0
Error = [microsoft][ODBC SQL SERVER DRIVER] STRING DATA
RIGHT TRUNCATION

I have tried increasing all VARCHAR column sizes on the
receiving table significantly but to no avail.

Can anyone suggest what might be the problem or how
i might be able to circumvent this?

many thanks

BlueCJH
 
solved my own problem - importing the wrong table!
:(

BlueCJH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top