How to solve “Batch update returned unexpected row count from update; actual row count: 0; expected: 1” problem?

前端 未结 4 1214
你的背包
你的背包 2021-01-03 18:12

Getting this everytime I attempt to CREATE a particular entity ... just want to know how I should go about figuring out the cause.

I\'m using Fluent NHibernate autom

4条回答
  •  渐次进展
    2021-01-03 19:03

    This can happen when trigger(s) execute additional DML (data modification) queries which affect the row counts. My solution was to add the following at the top of my trigger:

    SET NOCOUNT ON;
    

提交回复
热议问题