SQL Server Database Change Listener C#

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

    I would use a table with a single row in the db to catalog last updated, inserted, or deleted events and then create triggers on each table of importance to update this table and then poll this table for changes.

提交回复
热议问题