SQLException : String or binary data would be truncated

前端 未结 12 868
被撕碎了的回忆
被撕碎了的回忆 2020-11-27 06:41

I have a C# code which does lot of insert statements in a batch. While executing these statements, I got \"String or binary data would be truncated\" error and transaction r

12条回答
  •  -上瘾入骨i
    2020-11-27 07:10

    It could also be because you're trying to put in a null value back into the database. So one of your transactions could have nulls in them.

提交回复
热议问题