Quantcast
Channel: SQL Service Broker forum
Viewing all articles
Browse latest Browse all 461

SqlDependency causing delays to UPDATE statements

$
0
0

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



Viewing all articles
Browse latest Browse all 461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>