当前位置:网站首页>String or binary data will be truncated

String or binary data will be truncated

2022-07-07 02:08:00 C... D

Error! [8152]System.Data.SqlClient.SqlException: String or binary data will be truncated . Statement terminated .

reason : The data type of the field added in the database table should be consistent with that of the same field in other tables , Otherwise it will be reported “ String or binary data will be truncated . Statement terminated .” Such mistake .

resolvent :

1、 Modify the database field size ;

2、 Strengthen data robustness , Strict input judgment . Prevent the added information type or length from being inconsistent with the type corresponding to the field in the database table .

原网站

版权声明
本文为[C... D]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207061825114093.html