<?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 for It Depends</title>
	<atom:link href="http://www.barkingaardvark.com/sqlblog/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://www.barkingaardvark.com/sqlblog</link>
	<description>A blog about SQL and MS SQL Server</description>
	<lastBuildDate>Wed, 18 May 2011 16:11:24 -0400</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Overheard by Jim Winter</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=106&#038;cpage=1#comment-28</link>
		<dc:creator>Jim Winter</dc:creator>
		<pubDate>Wed, 18 May 2011 16:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=106#comment-28</guid>
		<description>Could be worse. He could have said Sybase.

Which only works well if managed by SQL Server.</description>
		<content:encoded><![CDATA[<p>Could be worse. He could have said Sybase.</p>
<p>Which only works well if managed by SQL Server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on This Might Be Useful by dean</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=102&#038;cpage=1#comment-27</link>
		<dc:creator>dean</dc:creator>
		<pubDate>Wed, 16 Mar 2011 00:05:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=102#comment-27</guid>
		<description>That&#039;s a topic big enough for a book.

Basically, you analyze all the missing indexes that look similar and see if you can identify one that would satisfy a number of them. You look at those with only a few accesses with a skeptical eye - odds are high that they are due to ad-hoc querying and not your regular everyday workload, and thus should be ignored.

You look at the queries hitting your database to see if any of the bad ones are the ones causing the engine to think it needs an index on something other than what is already there: a query with an indexed column wrapped in a function (ISNULL, for example) may cause this under some circumstances, and in those cases it is the query that should be rewritten rather than indexes added...

You look at design (if design is under your control) to see if there are any crazy things going on there - did somebody create a table or set of tables with a surrogate key and no alternate key?

I could write a series of posts about what you do if Missing &gt; 0.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a topic big enough for a book.</p>
<p>Basically, you analyze all the missing indexes that look similar and see if you can identify one that would satisfy a number of them. You look at those with only a few accesses with a skeptical eye &#8211; odds are high that they are due to ad-hoc querying and not your regular everyday workload, and thus should be ignored.</p>
<p>You look at the queries hitting your database to see if any of the bad ones are the ones causing the engine to think it needs an index on something other than what is already there: a query with an indexed column wrapped in a function (ISNULL, for example) may cause this under some circumstances, and in those cases it is the query that should be rewritten rather than indexes added&#8230;</p>
<p>You look at design (if design is under your control) to see if there are any crazy things going on there &#8211; did somebody create a table or set of tables with a surrogate key and no alternate key?</p>
<p>I could write a series of posts about what you do if Missing &gt; 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on This Might Be Useful by protected static</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=102&#038;cpage=1#comment-26</link>
		<dc:creator>protected static</dc:creator>
		<pubDate>Tue, 15 Mar 2011 22:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=102#comment-26</guid>
		<description>So where do you start if Missing &gt; 0?</description>
		<content:encoded><![CDATA[<p>So where do you start if Missing &gt; 0?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I Wonder by dean</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=77&#038;cpage=1#comment-22</link>
		<dc:creator>dean</dc:creator>
		<pubDate>Mon, 13 Dec 2010 15:36:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=77#comment-22</guid>
		<description>Sorry to take so long to approve this!

Anyway, yes, I think so. It would be a tiny, narrow expert system, and I hadn&#039;t thought of it that way.

I intend to try solving this, but there are other SQL projects that demand attention right now.</description>
		<content:encoded><![CDATA[<p>Sorry to take so long to approve this!</p>
<p>Anyway, yes, I think so. It would be a tiny, narrow expert system, and I hadn&#8217;t thought of it that way.</p>
<p>I intend to try solving this, but there are other SQL projects that demand attention right now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I Wonder by rubÃ©n</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=77&#038;cpage=1#comment-20</link>
		<dc:creator>rubÃ©n</dc:creator>
		<pubDate>Thu, 09 Dec 2010 21:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=77#comment-20</guid>
		<description>It would be great to figure out how to achieve this using bare SQL queries. Especially the manner in which the information would be organized into tables. It would resemble an expert system, what do you think?</description>
		<content:encoded><![CDATA[<p>It would be great to figure out how to achieve this using bare SQL queries. Especially the manner in which the information would be organized into tables. It would resemble an expert system, what do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Procedure Query Plans in Cache by protected static</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=69&#038;cpage=1#comment-19</link>
		<dc:creator>protected static</dc:creator>
		<pubDate>Fri, 02 Jul 2010 20:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=69#comment-19</guid>
		<description>Very interesting... I could see that coming in handy.</description>
		<content:encoded><![CDATA[<p>Very interesting&#8230; I could see that coming in handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I May Be a Day Late, But I Don&#8217;t Think I&#8217;m a Dollar Short by New Post Up at the SQL Blog &#171; Anacronyms Revisited</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=56&#038;cpage=1#comment-11</link>
		<dc:creator>New Post Up at the SQL Blog &#171; Anacronyms Revisited</dc:creator>
		<pubDate>Mon, 12 Apr 2010 14:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=56#comment-11</guid>
		<description>[...] In which Dean enters Celko&#8217;s SQL Stumpers contest, but probably posts too late. [...]</description>
		<content:encoded><![CDATA[<p>[...] In which Dean enters Celko&#8217;s SQL Stumpers contest, but probably posts too late. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ISNULL vs COALESCE by dean</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=34&#038;cpage=1#comment-8</link>
		<dc:creator>dean</dc:creator>
		<pubDate>Fri, 05 Mar 2010 15:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=34#comment-8</guid>
		<description>How bad is it that I am replying to a comment left January 7th? Sigh.

Anyway, perhaps it is. The ISNULL() also exists in Sybase SQL, from which SQL Server was developed. I think it&#039;s an example of the Chicken/Egg Cycle.</description>
		<content:encoded><![CDATA[<p>How bad is it that I am replying to a comment left January 7th? Sigh.</p>
<p>Anyway, perhaps it is. The ISNULL() also exists in Sybase SQL, from which SQL Server was developed. I think it&#8217;s an example of the Chicken/Egg Cycle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ISNULL vs COALESCE by Graham</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=34&#038;cpage=1#comment-7</link>
		<dc:creator>Graham</dc:creator>
		<pubDate>Thu, 07 Jan 2010 19:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=34#comment-7</guid>
		<description>This may be a relic of programming in MS languages.  There&#039;s an IsNull() function in every single one.</description>
		<content:encoded><![CDATA[<p>This may be a relic of programming in MS languages.  There&#8217;s an IsNull() function in every single one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ISNULL vs COALESCE by protected static</title>
		<link>http://www.barkingaardvark.com/sqlblog/?p=34&#038;cpage=1#comment-6</link>
		<dc:creator>protected static</dc:creator>
		<pubDate>Fri, 18 Dec 2009 18:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.barkingaardvark.com/sqlblog/?p=34#comment-6</guid>
		<description>Hm. I did not know this, thanks for the tip!</description>
		<content:encoded><![CDATA[<p>Hm. I did not know this, thanks for the tip!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

