Sql Server will truncate string or binary data

Msg 8152, Level 16, State 14, Line 1 would truncate string or binary data. Statement terminated. Almost crying(so sad)

It turned out to be because the varchar (50) length of a record in my table was set too small.

Suggestion: If the field is too long and difficult to control, you can set varchar(max) and give it a try.

Reprinted from https://blog.csdn.net/LL_DaXue/article/details/53355293

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325491096&siteId=291194637