java - Exception on excuteUpdate -
i getting exception
com.microsoft.sqlserver.jdbc.sqlserverexception: string or binary data truncated.
the exception thrown @ following line:
preparestmt.setbinarystream(1, new bytearrayinputstream(data), data.length); updatepreparestmt.executeupdate();
i using ms-sql db. can me solve problem?
the datatype of column in trying insert data varbinary , length of data not large. inserting "test".
update
have increased size of datatype varbinary. made 1024, new exception :-
com.microsoft.sqlserver.jdbc.sqlserverexception:the conversion varbinary blob unsupported
can comment on exception?
as exception message sais, data seems larger database field should written to. maximum of data.length
, what's maximum length of column?
Comments
Post a Comment