Tips and Tricks for ColdFusion and Other Web Technologies like Java, jQuery, DataBase
Friday, February 03, 2012
[Macromedia][SQLServer JDBC Driver][SQLServer]String or binary data would be truncated.
[Macromedia][SQLServer JDBC Driver][SQLServer]String or binary data would be truncated.
Sometimes we got an error message like above while working ColdFusion(9) with MS SQL(2008) date base. Then what is the cause of the error??
Do not think much, just look you are entering value to some fields in the database with beyond the limit mentioned in the database.
e.g - You may have mentioned a field in database vcSearchField(VARCHAR(100)), but during any insert or update operation you are providing it to string of length more than 100.
Hope it will save your time. :)
Subscribe to:
Post Comments (Atom)
Thanks a lot it saved my time:
ReplyDeleteFor more information look at this:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ec184168-ddd1-4df5-b2c7-c6671b602a3d/string-or-binary-data-would-be-truncated-and-field-specifications
Thanks a lot......
ReplyDeleteGood to know it helped you.
Delete