The scenario is as follows:
- Client A and Client B both logged into the application.
- Client A and Client B have their gridview populated(shows uploaded files).
- Client A uploads a file to database.
- Client B must detect that there is a data added(the file which Client A uploaded) and repopulate the gridview again.
I need to know the flow which step 4 works. I read about using SqlDependency and have looked at this article http://rusanu.com/2007/11/01/remove-pooling-for-data-changes-from-a-wcf-front-end/
However if I'm not wrong this article uses Notification Services which is deprecated in SQL Server 2008. I would also like to know how to register code in the client when it is detected that there is a change in query result in database. Thanks
Edited
Currently the options are SqlDependency, trigger, WCF, Observer pattern. If anyone knows if anyone of these solutions can/cannot be implemented in my scenario please feel free to comment and let me know.