SQLException : String or binary data would be truncated

In general, there isn’t a way to determine which particular statement caused the error. If you’re running several, you could watch profiler and look at the last completed statement and see what the statement after that might be, though I have no idea if that approach is feasible for you.

In any event, one of your parameter variables (and the data inside it) is too large for the field it’s trying to store data in. Check your parameter sizes against column sizes and the field(s) in question should be evident pretty quickly.

Leave a Comment