SQL Server Notifications - My OnChange does not fire

前端 未结 2 1746
心在旅途
心在旅途 2021-02-10 21:56

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:47

    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;
    

提交回复
热议问题