SQL Server Notifications - My OnChange does not fire

前端 未结 2 1589
别那么骄傲
别那么骄傲 2021-02-10 22:12

I would like to make use of SQL Server notifications to capture insert events at my database within a winforms app. I am attempting to use the SQLDependency object. The MSDN art

2条回答
  •  执笔经年
    2021-02-10 22:57

    While I was working in the implementation of query notification, I got the exact problem. I checked all configurations, code pieces, and even TCP settings, but nothing helped. Then, I figured out the following query to run on database and it solved my problem. Maybe you can try it.

    ALTER AUTHORIZATION ON DATABASE::[Your DB] TO sa;
    

提交回复
热议问题