0

The company program prints out the string or binary data would be truncated error to an error table when trying to insert into a specific table. I do realize from other posts that the cause of this is the current table structure. There are one or more fields that are too short, but unfortunately I do not have access to the values of the actual query. Instead, it dumps them as @parametername1, @parametername2, etc. from the stacktrace.

Is there any way I can see from some kind of monitoring tool in SQL Server 2012 what parameter and value failed? I mean, the SQL Server has returned the error, so supposedly I can log it if I repeat the error?

4

1 回答 1

2

您可以在 SQL Profiler 中设置跟踪。对于该语句,它将为您提供要插入的列和匹配值的列表。

于 2013-05-28T14:50:00.370 回答