SQL Server error on update command - “A severe error occurred on the current command”

后端 未结 10 1923
一生所求
一生所求 2020-11-28 11:13

Running the following query in SQL Server Management Studio gives the error below.

update table_name set is_active = 0 where id  = 3
10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 11:23

    In my case, I was using System.Threading.CancellationTokenSource to cancel a SqlCommand but not handling the exception with catch (SqlException) { }

提交回复
热议问题