I currently have a datagridview in .net that is connected by to a SQL database. The datagridview shows sales orders. New sales orders go on all the time and we'll have dozens of clients viewing the datagrid application.
I would like the application to seemlessly update when a new sales order goes on without the user having to click refresh everytime.
My thought is: Create a separate thread that on an interval queries the database, generates a dataset and compares it with the original. If its different it will invoke an event that will cause the datagridview to update.
My worry is: if i have dozens of users all running a background thread constantly querying the database on an interval, am I not creating lots of work for the SQL server? Is this the right way to do it?
Any advice would be appreciated.
(Using VB.net, SQL 2008)