SqlDependency Only firing event once

G

Guest

Hey gang.

I am just learning the SqlDependency class for the first time. I am really
thankful for this class I believe. I thought I was going to have to do SQL
CLR Trigger that called my WebService.

Anyways, I am using the SqlDependency.OnChange event and its working great
except that it only fires once. If I make a 2nd change to a field in the
table, it doesn't fire a second time.

Is there any reason for this? What have I done wrong? The first response
comes back perfectly as expected.

Thanks and take care.
 
M

Miha Markic [MVP C#]

Hi,

If I remember properly, you have to re-link dependency after change.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top