错误提示如下:
Batch update returned unexpected row count from update; actual row count: 2; expected: 1
实际上是由于触发器返回了影响行数引起的,在触发器开始的代码处添加:
set nocount on
即可。
当使用批处理更新时遇到行数不匹配错误,可通过在触发器开始添加SET NOCOUNT ON来解决。
错误提示如下:
Batch update returned unexpected row count from update; actual row count: 2; expected: 1
实际上是由于触发器返回了影响行数引起的,在触发器开始的代码处添加:
set nocount on
即可。
2万+
2458
703

被折叠的 条评论
为什么被折叠?