Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to understand how SqlDependency works. You <a href="http://rusanu.com/2006/06/17/the-mysterious-notification/" rel="noreferrer">subscribe a result set and get notified when that result set has changed</a>. You can subscribe any kind of result set, that means any kind of query, as long as it conforms to the <a href="http://msdn.microsoft.com/en-us/library/ms181122(SQL.90).aspx" rel="noreferrer">restrictions of the supported statements</a>. It really makes no difference if is a table or a view.</p> <p>So technically you can subscribe for specific notifications by submitting a query specific for that row, ie. with a hard coded WHERE clause. You would have to change your code to retrieve and cache only the needed data on a row-by-row basis as opposed to retrieving entire tables and caching them in memory. Heck, you'd have to do that anyway if you're at least concerned about the size of those tables. Caching entire tables should only be done for catalog and reference data that change infrequently or not at all.</p> <p>You can also choose to retrieve and cache partitions of the data, ie. individual ranges of keys (say between 'A' and 'D', 'E' and 'H' etc and subscribe to be notified for that specific data partition.</p> <p>If you want to <a href="http://rusanu.com/2006/06/17/the-mysterious-notification/" rel="noreferrer">understand how SqlDependency works</a> my blog has some articles covering it, including <a href="http://rusanu.com/2008/01/04/sqldependencyonchange-callback-timing/" rel="noreferrer">common programming pitfalls of SqlDependency</a> and <a href="http://rusanu.com/2007/11/10/when-it-rains-it-pours/" rel="noreferrer">deployment problems with SqlDependency</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload