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

SqlDependency with timeout parameter

$
0
0
I am using query notification (using sqldependecy) .I want to use timeout parameter when creating SqlDependecy object

 SqlDependency oDependency = new SqlDependency(oCommand,null,200);


When I use the above, my app gets back the following notifications immediately--

Info->Error
Source->Change


shouldn't  I  get a timeout notification after 200 seconds with following  ??? -

info ->
Expired
Source->Change


When i see the error log, i get the following error

The query notification dialog on conversation handle '{....... }.' closed due to the following error: '<?xml version="1.0"?><Error xmlns="http://schemas.microsoft.com/SQL/ServiceBroker/Error"><Code>-8490</Code><Description>Cannot find the remote service &apos;SqlQueryNotificationService- GUID..&apos; because it does not exist.</Description></Error>'.



interesting thing is whenever i run this, the above error has 
SqlQueryNotificationService- GUID. as the one created in the last run.

If i use the default value

 SqlDependency oDependency = new SqlDependency(oCommand,null,0); I don't get any errors.


Can anyone please help me in troubleshooting this?

Thanks



Viewing all articles
Browse latest Browse all 461

Trending Articles



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