System.Data.SqlClient.SqlException: will truncate string or binary data
Copyright: This is an original post by the blogger and may not be reproduced without the blogger's permission. https://blog.csdn.net/huyuyang6688/article/details/31816861
“System.Data.SqlClient.SqlException ”Unhandled exceptions of typeSystem.Data.dll occur in。 Additional information： Will truncate string or binary data
This is a problem encountered while doing this module on basic data setting for the server room charging system.
Originally, the UI layer of the code was used in the Try...... Catch caught the exception, as follows.