I am using MySQL with C# / Visual Studio 2008. I need to know any method so that if one user updates the database, all the logged in users over the network, are notified that a change has been occurred.
If i logged in the database through my application, at that time the serial no of the latest record in the database was 10, and then i someone with the privileges updates the record in the database and at the same time i am being notified that the database has been updated with a new record.
Common example can be of MSN messenger’s alert for a friend when he gets online…
Though i really don’t want that popup, but alert functionality is something like that…
One more thing to ask:
I want a functionality like if a record’s status is not updated (for say about more than 3 hours), then i want all users to get alert about that issue also. This functionality is needed for all of the records, not specifically for new records.
You probably need to design some kind of poll functionality in your client. For example, you can send a request each minute asking the database “Have you updated anything since [date the client latest got updates]?” If the database answers
true, you let the client request the full set of updates. If not, you let it sleep another minute.