c# - Stopping SqlDependency exceedingly slow -
i call in c# following stop sqldependency.
rslt = sqldependency.stop(myconnstr, _notificationqueue);
this takes 4-5 seconds. i've put sql profiler see happening , calls following (in single batch) , takes 4-5 seconds:
exec sp_executesql n'begin transaction; drop service [sqlquerynotificationservice-45558b70-3adc-414b-9f7b-1da40abfc5b6]; drop queue [sqlquerynotificationservice-45558b70-3adc-414b-9f7b-1da40abfc5b6]; drop procedure [sqlquerynotificationstoredprocedure-45558b70-3adc-414b-9f7b-1da40abfc5b6]; commit transaction;', n'@p2 int', @p2 = 60000
why slow , how speed up?
Comments
Post a Comment