I'm trying to write a vb.net application that uses an sql dependancy.
The dependancy will be triggered when data is added to the database.
I'm wondering if it's possible to have the dependancy return the data/query that triggered it.
currently i have to have the onchange event trigger a select statement to refresh the data i have cached. Is it possible to just have the dependancy return the new data that triggered it
i.e.
the following is added to a table, the table has 2 fields (id, data)
id: 1
data: hello
when this is added the dependancy onchange event will be fired and
id: 1
data: hello
will be returned