String Or Binary Data Would Be Truncated

Sometimes when trying to execute an SQL query (typically an INSERT or UPDATE), you can get this error:

String or binary data would be truncated.

This is because you are trying to insert some data that has a greater length than the column in the database is set to be able to take.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Leave a comment

Your email address will not be published. Required fields are marked *