SqlDependency using BackgroundWorker
问题 I have a table in a SQL Server database that represents a log file of some actions inserted from a running windows service. Everything is working well. But, I have a Windows application that gets the latest rows that have been inserted in the log table and views it in a DataGridView . While developing this application I depended on Using SqlDependency in a Windows Application from MSDN. It is working well, but when the log table receives a large number of log details, the Windows app hangs up