none
How to Watch Database table for any change in data RRS feed

  • Question

  • Hello Professionals,

    Is there something like System Watcher for Database table?,

    i have a software that create and update records in the Database, i want to create another one and detect these change events and retrieve the changed record?

    How can i do that?

    Thanks in Advance,


    Kareem Naguib

    Wednesday, October 30, 2013 10:34 AM

All replies

  • You might want to create a background thread that continuously checks the table for any updates and fires some event if there is any change.


    Please mark this post as answer if it solved your problem. Happy Programming!

    Wednesday, October 30, 2013 11:00 AM
  • This may work perfectly if i want to get any new data added to the table, 

    but how can i detect if an existing record changed?

    after search, i found a SQL Dependency Class, but it is still not working and i can't get the data changed but it seems that SQL Dependency may help


    Kareem Naguib

    Wednesday, October 30, 2013 11:16 AM
  • Hi Kareem,

    SQL Dependency Class is ideal for caching scenaios. When you add some instances into cache, SQL Dependency Class will help you to monitor the changes of table. I think it is not suit your application.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, November 6, 2013 8:56 AM
    Moderator