<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using SqlDependency To Monitor SQL Database Changes</title>
	<atom:link href="http://eclipsed4utoo.com/blog/sqldependency-monitor-sql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://eclipsed4utoo.com/blog/sqldependency-monitor-sql-database/</link>
	<description>Not Your Ordinary Programmer</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:14:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Nana Hagge</title>
		<link>http://eclipsed4utoo.com/blog/sqldependency-monitor-sql-database/comment-page-1/#comment-2979</link>
		<dc:creator>Nana Hagge</dc:creator>
		<pubDate>Fri, 27 Jan 2012 11:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsed4utoo.com/blog/?p=299#comment-2979</guid>
		<description>An individual I operate with visits your website routinely and suggested it to me to examine as well. The creating style is terrific and the material is related. Thank you for your perception you deliver the viewers.I discover one thing far more difficult on entirely diverse weblogs each day. It really should continually be stimulating to understand subject matter from other writers and abide by only a small a single issue from their keep. I&#039;d favor to make utilization of some together with the subject matter on my weblog irrespective of whether or not you never thoughts. Natually I&#039;ll offer you you a hyperlink on your world wide web website. Thanks for sharing.!</description>
		<content:encoded><![CDATA[<p>An individual I operate with visits your website routinely and suggested it to me to examine as well. The creating style is terrific and the material is related. Thank you for your perception you deliver the viewers.I discover one thing far more difficult on entirely diverse weblogs each day. It really should continually be stimulating to understand subject matter from other writers and abide by only a small a single issue from their keep. I&#8217;d favor to make utilization of some together with the subject matter on my weblog irrespective of whether or not you never thoughts. Natually I&#8217;ll offer you you a hyperlink on your world wide web website. Thanks for sharing.!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yo</title>
		<link>http://eclipsed4utoo.com/blog/sqldependency-monitor-sql-database/comment-page-1/#comment-2423</link>
		<dc:creator>yo</dc:creator>
		<pubDate>Sun, 27 Mar 2011 22:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsed4utoo.com/blog/?p=299#comment-2423</guid>
		<description>You should participate in a contest for probably the greatest blogs on the web. I will suggest this site!</description>
		<content:encoded><![CDATA[<p>You should participate in a contest for probably the greatest blogs on the web. I will suggest this site!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Alford</title>
		<link>http://eclipsed4utoo.com/blog/sqldependency-monitor-sql-database/comment-page-1/#comment-894</link>
		<dc:creator>Ryan Alford</dc:creator>
		<pubDate>Wed, 17 Nov 2010 12:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsed4utoo.com/blog/?p=299#comment-894</guid>
		<description>Thanks Jimmo.  I will look into these changes and update the post.</description>
		<content:encoded><![CDATA[<p>Thanks Jimmo.  I will look into these changes and update the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmo</title>
		<link>http://eclipsed4utoo.com/blog/sqldependency-monitor-sql-database/comment-page-1/#comment-891</link>
		<dc:creator>Jimmo</dc:creator>
		<pubDate>Wed, 17 Nov 2010 05:12:13 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsed4utoo.com/blog/?p=299#comment-891</guid>
		<description>You create the queue and service [NameChangeQueue/Service] but your not actually using it, instead SQL is creating a queue for you, called [SqlQueryNotificationService-[GUID]].  To use the queue you initially created you need to modify your code:

SqlDependency.Stop(connectionString, &quot;NameChangeQueue&quot;);
SqlDependency.Start(connectionString, &quot;NameChangeQueue&quot;);

and:

SqlDependency dep = new SqlDependency(cmd, &quot;service=NameChangeService; Local database=DATABASE_NAME&quot;, 0);

This will then use the named service and queue you created.

cheers</description>
		<content:encoded><![CDATA[<p>You create the queue and service [NameChangeQueue/Service] but your not actually using it, instead SQL is creating a queue for you, called [SqlQueryNotificationService-[GUID]].  To use the queue you initially created you need to modify your code:</p>
<p>SqlDependency.Stop(connectionString, &#8220;NameChangeQueue&#8221;);<br />
SqlDependency.Start(connectionString, &#8220;NameChangeQueue&#8221;);</p>
<p>and:</p>
<p>SqlDependency dep = new SqlDependency(cmd, &#8220;service=NameChangeService; Local database=DATABASE_NAME&#8221;, 0);</p>
<p>This will then use the named service and queue you created.</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Alford</title>
		<link>http://eclipsed4utoo.com/blog/sqldependency-monitor-sql-database/comment-page-1/#comment-370</link>
		<dc:creator>Ryan Alford</dc:creator>
		<pubDate>Fri, 21 May 2010 14:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsed4utoo.com/blog/?p=299#comment-370</guid>
		<description>Glad to help you out.</description>
		<content:encoded><![CDATA[<p>Glad to help you out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr.Jelda</title>
		<link>http://eclipsed4utoo.com/blog/sqldependency-monitor-sql-database/comment-page-1/#comment-369</link>
		<dc:creator>Mr.Jelda</dc:creator>
		<pubDate>Fri, 21 May 2010 11:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://eclipsed4utoo.com/blog/?p=299#comment-369</guid>
		<description>Great! I was stuck on problem since Onchange didn&#039;t fire as it should before read this post.

I&#039;ve read all the posts from the internet. Finally with no hope, I compared my code to yours. Tada! How&#039;s the hell I forgot to pass &#039;cmd&#039; as SqlDependency constructor. Funny me ^^! Thank you.</description>
		<content:encoded><![CDATA[<p>Great! I was stuck on problem since Onchange didn&#8217;t fire as it should before read this post.</p>
<p>I&#8217;ve read all the posts from the internet. Finally with no hope, I compared my code to yours. Tada! How&#8217;s the hell I forgot to pass &#8216;cmd&#8217; as SqlDependency constructor. Funny me ^^! Thank you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

