After using SQLDepdendency as a queue implementation in one of my projects (now live) and after discovering that it is ineherinitley broken (see http://rusanu.com/2008/01/04/sqldependencyonchange-callback-timing/).
I am desperately looking for alternatives. I am focusing on using SQLNotificationRequest as a replacement, which is what SQLDependency leverages to create a convenient implementation by dynamically creating a Queue and ServiceBroker service at runtime.
I have scoured the internet but i cant seem to find any good examples on SQLNotificationRequest, i have looked here http://msdn.microsoft.com/en-us/library/3ht3391b(v=vs.80).aspx, but the code is buggy and doesnt work as expected.
I have also looked at code-project, http://www.codeproject.com/Articles/18130/Advanced-SQL-SQLNotificationRequest-Functiona but the author maintains that the code is a proof of concept only and also doesnt behave as expected.
Does anyone out there have a good resource they have come across regarding SQLNotificationRequest? A book maybe with a good example or maybe suggestions how to fix the code in link1?
I have run the code but it keeps continuing to check for notifications rather than only fire when changes actually occur the database (changes counter keeps running continously)