<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">
<channel>
	<title>Comments for Brad Corbin</title>
	
	<link>http://bradcorbin.net</link>
	<description>Brad Corbin on SQL Server</description>
	<lastBuildDate>Thu, 28 Jan 2010 13:55:05 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/BradCorbinComments" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="bradcorbincomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on Identifying the High CPU SQL Instance by Michael J Swart</title>
		<link>http://bradcorbin.net/2010/01/identifying-the-high-cpu-sql-instance/comment-page-1/#comment-13</link>
		<dc:creator>Michael J Swart</dc:creator>
		<pubDate>Thu, 28 Jan 2010 13:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://bradcorbin.net/?p=61#comment-13</guid>
		<description>That's awesome. 
As an alternative to task manager, I use process explorer. 
An old article of mine ( http://michaeljswart.com/?p=12 ) includes a 20 second video showing how I find the top cpu consumer and instance name.</description>
		<content:encoded><![CDATA[<p>That&#8217;s awesome.<br />
As an alternative to task manager, I use process explorer.<br />
An old article of mine ( <a href="http://michaeljswart.com/?p=12" rel="nofollow">http://michaeljswart.com/?p=12</a> ) includes a 20 second video showing how I find the top cpu consumer and instance name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New SQL Server Blog! by Lee</title>
		<link>http://bradcorbin.net/2009/09/new-sql-server-blog/comment-page-1/#comment-8</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Fri, 16 Oct 2009 12:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://bradcorbin.net/?p=5#comment-8</guid>
		<description>Looking forward to some great blog postings! I am in the process also of sqlserverpedia syndication.

Best regards,
Lee Everest</description>
		<content:encoded><![CDATA[<p>Looking forward to some great blog postings! I am in the process also of sqlserverpedia syndication.</p>
<p>Best regards,<br />
Lee Everest</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Phantom Query by Brad Corbin</title>
		<link>http://bradcorbin.net/2009/09/the-phantom-query/comment-page-1/#comment-4</link>
		<dc:creator>Brad Corbin</dc:creator>
		<pubDate>Wed, 30 Sep 2009 21:06:02 +0000</pubDate>
		<guid isPermaLink="false">http://bradcorbin.net/?p=15#comment-4</guid>
		<description>Yep, pulling that term out should be equivalent, and (I would guess) gives you have a chance of using an index on FROM_DATE, if there is one.</description>
		<content:encoded><![CDATA[<p>Yep, pulling that term out should be equivalent, and (I would guess) gives you have a chance of using an index on FROM_DATE, if there is one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Phantom Query by Brad Schulz</title>
		<link>http://bradcorbin.net/2009/09/the-phantom-query/comment-page-1/#comment-3</link>
		<dc:creator>Brad Schulz</dc:creator>
		<pubDate>Wed, 30 Sep 2009 19:37:25 +0000</pubDate>
		<guid isPermaLink="false">http://bradcorbin.net/?p=15#comment-3</guid>
		<description>Hi Brad...

I think your final WHERE clause is equivalent to the following:

WHERE GETDATE()&gt;=FROM_DATE
  AND (TO_DATE IS NULL OR GETDATE()&lt;=TO_DATE)

or even the initial query could just be changed to the following to imply the maximum allowable SMALLDATETIME value if TO_DATE is NULL:

WHERE GETDATE() BETWEEN FROM_DATE AND COALESCE(TO_DATE,'20790606')

(I tend to prefer COALESCE to ISNULL)

I tried to run time tests on all three approaches, but the results I got (on a million-row table) were inconclusive.  They're all pretty much interchangeable I suppose.

Thanks for an interesting first entry.  I'm looking forward to reading more in the future...

--Brad Schulz</description>
		<content:encoded><![CDATA[<p>Hi Brad&#8230;</p>
<p>I think your final WHERE clause is equivalent to the following:</p>
<p>WHERE GETDATE()&gt;=FROM_DATE<br />
  AND (TO_DATE IS NULL OR GETDATE()&lt;=TO_DATE)</p>
<p>or even the initial query could just be changed to the following to imply the maximum allowable SMALLDATETIME value if TO_DATE is NULL:</p>
<p>WHERE GETDATE() BETWEEN FROM_DATE AND COALESCE(TO_DATE,&#039;20790606&#039;)</p>
<p>(I tend to prefer COALESCE to ISNULL)</p>
<p>I tried to run time tests on all three approaches, but the results I got (on a million-row table) were inconclusive.  They&#039;re all pretty much interchangeable I suppose.</p>
<p>Thanks for an interesting first entry.  I&#039;m looking forward to reading more in the future&#8230;</p>
<p>&#8211;Brad Schulz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on New SQL Server Blog! by Brent Ozar</title>
		<link>http://bradcorbin.net/2009/09/new-sql-server-blog/comment-page-1/#comment-2</link>
		<dc:creator>Brent Ozar</dc:creator>
		<pubDate>Wed, 30 Sep 2009 11:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://bradcorbin.net/?p=5#comment-2</guid>
		<description>Boy, do I know what you mean about life getting in the way.  It's funny how that works.  Glad to see you starting to blog!</description>
		<content:encoded><![CDATA[<p>Boy, do I know what you mean about life getting in the way.  It&#8217;s funny how that works.  Glad to see you starting to blog!</p>
]]></content:encoded>
	</item>
</channel>
</rss><!-- Dynamic page generated in 0.240 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-06-12 12:20:21 -->
