<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Anyone using SQL Server Query Notification?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Anyone using SQL Server Query Notification?</description>
  <pubDate>Sun, 19 Apr 2026 11:30:49 -700</pubDate>
  <lastBuildDate>Fri, 21 Dec 2007 11:14:55 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=609</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Anyone using SQL Server Query Notification? : Yup. I&amp;#039;ve wondered about...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=609&amp;PID=2280#2280</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 609<br /><strong>Posted:</strong> 21-Dec-2007 at 11:14am<br /><br /><DIV dir=ltr align=left><SPAN =281231618-21122007><FONT face=Arial color=#0000ff size=2>Yup. I've wondered about this too. It seems to be a limitation of SQL Server 2005. I'm not even sure if it tells you what row in a table changed (I confess I haven't really looked at it).</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN =281231618-21122007><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><DIV dir=ltr align=left><SPAN =281231618-21122007><FONT face=Arial color=#0000ff size=2>So if you want to be notified, you should be notified via an AuditTrail table that tells you ... and then either use table triggers or code to add rows to the AuditTrail table.</FONT></SPAN></DIV><BR>]]>
   </description>
   <pubDate>Fri, 21 Dec 2007 11:14:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=609&amp;PID=2280#2280</guid>
  </item> 
  <item>
   <title>Anyone using SQL Server Query Notification? : We implemented a cache-refresh...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=609&amp;PID=2279#2279</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=223" rel="nofollow">Sigi</a><br /><strong>Subject:</strong> 609<br /><strong>Posted:</strong> 21-Dec-2007 at 3:34am<br /><br />We implemented a cache-refresh mechanism based on SqlDependency almost as you described it. We had an&nbsp; SqlDependency&nbsp; running on a Custom-Module with&nbsp; the BOS which was notifying clients about DB-changes.<br>This works fine. There was/is one problem: SqlDependency does not tell you what exactly changed, even the Column which changed is not reported. This makes it useless for monitoring changes of tables with lots of data.<br>If all your data access to the Db goes through DevForce, you may wait for a new feature of DevForce providing this functionality in a way you can use it for any size of tables.<br>]]>
   </description>
   <pubDate>Fri, 21 Dec 2007 03:34:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=609&amp;PID=2279#2279</guid>
  </item> 
  <item>
   <title>Anyone using SQL Server Query Notification? : I think I can explain this in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=609&amp;PID=2254#2254</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=153" rel="nofollow">pnschofield</a><br /><strong>Subject:</strong> 609<br /><strong>Posted:</strong> 18-Dec-2007 at 11:14am<br /><br />I think I can explain this in another way that would be more interesting.&nbsp; Imagine if your client app could execute every single query as CacheOnly, even if you absolutely required up-to-date data.&nbsp; You could enjoy the performance of cached queries, with a guarantee that you'd be only hit the database if the data had changed in the meantime.<br><br>Just have the BOS ask for query notifications for each query.&nbsp; When it receives a notification, the BOS calls a method on the client that originally made the query, to tells it to remove that query from the QueryCache.&nbsp; The next time that client performs the query (as CacheOnly), it will find that the query doesn't exist in the QueryCache, and will only then execute it against the BOS.&nbsp; Until that time, the client will be retrieving the query from the local cache, every single time.&nbsp; <br><br>Basically, your client app would never again query the database unless it was necessary to do so.&nbsp; <br>]]>
   </description>
   <pubDate>Tue, 18 Dec 2007 11:14:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=609&amp;PID=2254#2254</guid>
  </item> 
  <item>
   <title>Anyone using SQL Server Query Notification? : I found the tutorial on using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=609&amp;PID=2204#2204</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=153" rel="nofollow">pnschofield</a><br /><strong>Subject:</strong> 609<br /><strong>Posted:</strong> 13-Dec-2007 at 1:36pm<br /><br />I found the tutorial on using Push functionality with SQL Server Notification Services.&nbsp; I was wondering if anyone had tried using the SQL Server Query Notification with DevForce.&nbsp; I think our client app could bypass quite a few DataSourceOnly queries if we could have the BOS request Query Notifications for some queries, and then use the Push feature to notify clients when they need to refresh their EntityCache.<br><br>I found <a href="http://dunnry.com/blog/UsingSQLDependency&#079;bjectsWithLINQ.aspx" target="_blank">this article</a>, which describes a method for getting any SqlCommands in&nbsp; a CallContext to participate in a Query Notification.<br><br>If the Fetching event is raised on the PM instance running in the BOS prior to performing the actual database query, I believe I can use the sample code to have the ADO.NET create a SqlDependency and add it to the SqlCommand used by the BOS to perform the actual query.&nbsp; When SQL Server performs the callback to the BOS, the BOS can perform a Push call back to the client app that performed the original query, notifying it that it should re-fetch the query using DataSourceOnly, to keep the client cache up-to-date.<br><br>Has anyone tried this type of approach?<br><br>Paul<br><br><a href="http://dunnry.com/blog/UsingSQLDependency&#079;bjectsWithLINQ.aspx" target="_blank"></a>]]>
   </description>
   <pubDate>Thu, 13 Dec 2007 13:36:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=609&amp;PID=2204#2204</guid>
  </item> 
 </channel>
</rss>