Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 import

Author  Topic 

JJins
Yak Posting Veteran

81 Posts

Posted - 2011-05-12 : 14:14:02
I am trying to inport data into SQL from Ecell and I normally have a great way of just copping and pasteing. This time I am getting a message that blocks the import...........


The data row 1 was not committed.
Error Source: .Net SqlClient Data Provider.
Error Message: String or binary data would truncated.
The statement has been terminated.

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2011-05-12 : 14:17:32
One of your source fields is too big for one of your destination fields. SQL leaves it to you to find which one! (usually a string field)

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-05-16 : 09:17:39
Find such columns
http://beyondrelational.com/blogs/madhivanan/archive/2009/10/19/finding-out-problematic-data-in-bulk-insert-data-truncation-error.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -