troubleshooting Question

BCP from SQL2005 to 2008R2

Avatar of Kenneth_K
Kenneth_K asked on
Microsoft SQL Server 2008Microsoft SQL Server 2005
11 Comments1 Solution462 ViewsLast Modified:
Hi
I am trying to BCP data from a 2005 to 2008 SQL database, on the 2008 sql e are using Nvarchar instead of varchar.
When i try to use the commando:
BCP xxx in x\xxx -T -n  -S xxxxx
Then i get this fail error
SQLState = 22001, Native Error = 0 String data Right truncation.

I have then try to get a Error file from the BCP by using -e, then i got this: (se atach file)

 error.txt

When i look at the file i see it say that it is diffrence collum it fail on, so first i thought they could be diffrence on how many collums og Sorce/target.. but they are identical.. (just the Nvarchar)..
Have anyone idea what i could try.
ASKER CERTIFIED SOLUTION
dbaSQL
Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros