I am creating a Windows form application in C# which gets a set of links from a remote Sql Server db and adds the links to a local text file. Now what I want to do is create an auto-update functionality so that every time a new link is added to the remote db, the app automatically picks it up and adds it to the text file or atleast alerts the user that there is an update.
What would be the best way to go about this?
If the database is remote you need to manually poll the database for changes at a given interval.
If the client is running on the same machine as the database, you could have a database trigger that talks to the client some way.
I guess an alternative thing you could do would be to set it up so that each client is also a server, that accepts calls from the SQL server. Then you could still set an update trigger, that issues a command to all connected client-servers. That might be a whole lot of work for a small gain, tho.