Why isn't “String or Binary data would be truncated” a more descriptive error?

前端 未结 7 1763
眼角桃花
眼角桃花 2020-12-30 22:34

To start: I understand what this error means - I\'m not attempting to resolve an instance of it.

This error is notoriously difficult to troubleshoot

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-30 23:08

    Microsoft is lazy?

    You don't have to try each row insert separately, by the way. Just query for max(len(field)) for each text column, starting with the ones you suspect might be the culprit.

提交回复
热议问题