I have a win forms application which uses SqlDependency to monitor an orders table for changes (ie when goods are shipped etc). The SQL statement works fine but I am having trouble with other SQL statements wanting to update the orders table whilst the SqlDependency is monitoring the table.
Initially I thought it was down to the transaction containing the update statements but if I take just one simple update statement and run it in SQL Management Studio, I get the same delay between 10 and 20 seconds. It appears to be the case for just this one table which is monitored, other tables which are included in the SqlDependency SQL statement through inner joins are updated fine (<1 second).
Anyone any ideas on what could cause this or where to start troubleshooting?
Also, this is in a production system and the table in question has circa 19k rows. I don't see this problem in my dev system which has fewer rows.
Chris