String or binary data would be truncated

时间:2014-11-26 01:20:43   收藏:0   阅读:204

在使用Typed Dataset进行数据的插入时,会报这样的错:String or binary data would be truncated.

我碰到的原因是 数据库中字段的长度过段,插入时内容被截断.这时使用 sql语句进行字段更新即可.语法为: http://www.1keydata.com/sql/alter-table-modify-column.html

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!