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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -