i would like my windows service (to be written in .NET) to recognize when new rows are added to a specific table, but instead of pulling the data from the sql-server i would like to use a server push model.
does somebody has a hint for me how to achieve this?
i am using sql server 2005.
tia
There’s also the ADO.NET SqlDependency mechanism if you’re using client side ADO.NET with C# or VB.NET
You basically associate a
SqlDependencywith your SqlCommand, and provide an event handler that gets called when values that make up the result set of that SqlDependency change.In the event handler, you can then do whathever you need to do.
Marc