I 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
onnection.
OnError(Sq
lException
exception, Boolean breakConnection) +857242
System.Data.SqlClient.SqlI
nternalCon
nection.On
Error(SqlE
xception exception, Boolean breakConnection) +734854
System.Data.SqlClient.TdsP
arser.Thro
wException
AndWarning
(TdsParser
StateObjec
t stateObj) +188
System.Data.SqlClient.TdsP
arser.Run(
RunBehavio
r runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlC
ommand.Run
ExecuteNon
QueryTds(S
tring methodName, Boolean async) +192
System.Data.SqlClient.SqlC
ommand.Int
ernalExecu
teNonQuery
(DbAsyncRe
sult result, String methodName, Boolean sendToPipe) +380
System.Data.SqlClient.SqlC
ommand.Exe
cuteNonQue
ry() +135
vt_enhancements.WebForm1.b
tnUpdate_C
lick(Objec
t sender, EventArgs e) +1900
System.Web.UI.WebControls.
Button.OnC
lick(Event
Args e) +105
System.Web.UI.WebControls.
Button.Rai
sePostBack
Event(Stri
ng eventArgument) +107
System.Web.UI.WebControls.
Button.Sys
tem.Web.UI
.IPostBack
EventHandl
er.RaisePo
stBackEven
t(String eventArgument) +7
System.Web.UI.Page.RaisePo
stBackEven
t(IPostBac
kEventHand
ler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePo
stBackEven
t(NameValu
eCollectio
n postData) +33
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +5102