waitone

Unstable application uses SqlDependency. Several states and errors

我的未来我决定 提交于 2019-12-11 18:59:22
问题 I have a windows application using SqlDependency running at separated thread pool, this application represents a log monitor UI get the latest rows added in a specific table in the database and view it in a DataGridView. You can see the application source code from this LINK, or follow this script. const string tableName = "OutgoingLog"; const string statusMessage = "{0} changes have occurred."; int changeCount = 0; private static DataSet dataToWatch = null; private static SqlConnection