troubleshooting Question

Bulk insert truncates string to 255 characters

Avatar of andreyATCr
andreyATCr asked on
Microsoft SQL Server.NET ProgrammingMicrosoft SQL Server 2005
10 Comments1 Solution2025 ViewsLast Modified:
I am importing a TXT (tab) file into an SQL table.

Destination table is well over Varchar(1000) char in all the columns and value of that particular column has 800+ chars
So it looks like everything working fine, table has all the right data, but one column which usually has large string always truncated to 255

I'm using regular WriteToServer bcp command in the code
Join our community to see this answer!
Unlock 1 Answer and 10 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 10 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