I'm trying to upload a text file using BCP into my Source table. I'm getting this error:
SQLState = 22001, NativeError = 0
Error = [Microsoft][SQL Native Client 10.0]String data, right truncation
How can I fixed this?
Use test
go
create table Source (
id_adcount VARCHAR (50) NOT NULL,
adcount_Descrip VARCHAR(50) NOT NULL);
bcp test.dbo.Source in C:\Users\IPMAX\bcpFiles\AdmitSource\Source_20100615.txt -P xxxx -U xxxx -S myserver -c -t "|" -r"/n"