SqlDependency doesn't fire OnChange event when using stored procedures to get data

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
SqlDependency event OnChange doesnt work when i use stored procedures to get my data, or by other words, doing the selects of what i want. I know for a fact if i write the query in the CommandText (without using stored procedures) of the SqlCommand object,
the event works like a charm.
So i dont understand why is that... Does the Service Broker or the SqlDependency doesnt work too well if you use stored procedures to retrieve the data?
Thanks in advance!

View the full article
 
Back
Top