hmm, good idea, let me check
Main Topics
Browse All TopicsI know the general reason this happens. But it makes no sense why it is happening to me. I have a .net app I developed on a windows xp machine. I created a package, and deployed it to win2k/win2k3 -- and for some reason when I run it on that box, which manipulates the same database, and does the same insert/update it fails. Could it be a dll issue ?
I know for a fact the string is well formed and the database contains the correct columns, because it works on my xp box. Any suggestions ?
this is what I get :
[SqlException (0x80131904): String or binary data would be truncated.
The statement has been terminated.]
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlI
System.Data.SqlClient.TdsP
System.Data.SqlClient.TdsP
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlC
vt_enhancements.WebForm1.b
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.WebControls.
System.Web.UI.Page.RaisePo
System.Web.UI.Page.RaisePo
System.Web.UI.Page.Process
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Also, please follow-up on this old abandoned question:
http://www.experts-exchang
Based on the following links:
http://www.sql-server-help
http://www.sql-server-help
The usual cause of this problem is that you are trying insert or update a column where the length of the column is not long enough to accommodate the length of the value being inserted to it.
I understand the usual case. But I can assure you it is not an issue in relation to the code/tables. It works perfectly fine on my dev box, and I have been able to get it working on a test enviornment. I checked the mdac and versions of the framework and all three have the current versions needed.
It has something to do with the server and/or deployment.
>>I dont think it should PAQ'ed -- wont help anyone else.<<
As everyone has pointed out the error message is self-explanatory. See here:
What are my choice?
http://www.experts-exchang
FWIW - I started getting this error today after running perfectly fine for months. Turns out I had a table with two varchar(max) columns. Don't know what caused it, but today the first column was still varchar(max) however the second column had been converted to a varchar(1). For now I set both to varchar(6000) and it is working, but if it breaks again I guess I'll have to split the columns into two tables.
It should also be pointed out that this is a GoDaddy shared SQL2005 installation.
Business Accounts
Answer for Membership
by: Atlanta_MikePosted on 2006-05-11 at 11:03:35ID: 16661066
My first guess would be to check the MDAC version?