SQL Server Database Change Listener C#

前端 未结 5 729
灰色年华
灰色年华 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 10:10

    If you are using SQL Server 2008, there is a built in Change Data Capture that's pretty handy.

    http://msdn.microsoft.com/en-us/library/bb522489.aspx

    You can read the CDC data.

提交回复
热议问题