SQL Server Database Change Listener C#

前端 未结 5 737
灰色年华
灰色年华 2020-12-01 09:40

I want to listen for changes to data in a SQL Server database from C#. I was hoping that there would be some sort of listener which I could use to determine if data that I h

5条回答
  •  醉话见心
    2020-12-01 09:57

    You're looking for the SqlDependency class, which allows you to listen for changes to the resultset of a SQL query.

提交回复
热议问题