A trigger returned a resultset and/or was running with SET NOCOUNT OFF while another outstanding result set was active

前端 未结 4 1992
渐次进展
渐次进展 2021-02-18 23:24

I have 2 servers connected over a low speed wan and we\'re running SQL Server 2008 with Merge replication.

At the subscriber, sometimes when attempting to insert new row

4条回答
  •  旧巷少年郎
    2021-02-19 00:05

    I had the same problem.

    The problem was an insert with select:

    insert into table (...)
    select ...
    

    The problem was that select had a group statements and returned:

    Warning: Null value is eliminated by an aggregate or other SET operation.

    this causing the problem, I changed instructions max(field) by max(coalesce(field,'')) to avoid the null operation in max group function.

提交回复
热议问题