Getting data from SqlDependency

后端 未结 7 614
别那么骄傲
别那么骄傲 2021-01-02 06:25

I\'ve got a table and a SqlDependency that is waiting for new inserts.

OnChange fires as I need, but I don\'t understand if it\'s possible to get the row which caus

相关标签:
7条回答
  • 2021-01-02 06:57

    According to this post, you can't: http://social.msdn.microsoft.com/Forums/en-US/sqlservicebroker/thread/07234067-73e1-4db5-a4e6-0f9f0bae22ae/

    You can only narrow down the reason for the notification by using the properties

    • Source
    • Type
    • Info

    of the provided SqlNotificationEventArgs

    0 讨论(0)
提交回复
热议问题