<?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: Find Missing Indexes in Stored Procs with T-SQL</title>
	<atom:link href="http://sqlfool.com/2009/03/find-missing-indexes/feed/" rel="self" type="application/rss+xml" />
	<link>http://sqlfool.com/2009/03/find-missing-indexes/</link>
	<description>Self-Professed SQL Scripting Junkie!</description>
	<lastBuildDate>Fri, 04 May 2012 08:30:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Greg</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-6926</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 05 Oct 2011 18:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-6926</guid>
		<description>I have the same issue that MyDogJessie does.</description>
		<content:encoded><![CDATA[<p>I have the same issue that MyDogJessie does.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-5718</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Fri, 25 Mar 2011 15:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-5718</guid>
		<description>Hi Michelle,
I found a small bug with your code, the databases with dash character in it will though error.
simple change Use ? to Use [?] and it will resolve the issue.

Roman, try it out and see if it will fix your problem too.</description>
		<content:encoded><![CDATA[<p>Hi Michelle,<br />
I found a small bug with your code, the databases with dash character in it will though error.<br />
simple change Use ? to Use [?] and it will resolve the issue.</p>
<p>Roman, try it out and see if it will fix your problem too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MyDoggieJessie</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-5686</link>
		<dc:creator>MyDoggieJessie</dc:creator>
		<pubDate>Sun, 06 Mar 2011 03:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-5686</guid>
		<description>Running this out of the box (as posted, and including the Loggin procedure for your other blog) I got:

Msg 50000, Level 15, State 1, Procedure dba_LogErrorForMissingIndexes, Line 152
Violation of PRIMARY KEY constraint &#039;PK_temp_missingIndexes&#039;. Cannot insert duplicate key in object &#039;dbo.#missingIndexes&#039;. The duplicate key value is (32767, 1003234025).</description>
		<content:encoded><![CDATA[<p>Running this out of the box (as posted, and including the Loggin procedure for your other blog) I got:</p>
<p>Msg 50000, Level 15, State 1, Procedure dba_LogErrorForMissingIndexes, Line 152<br />
Violation of PRIMARY KEY constraint &#8216;PK_temp_missingIndexes&#8217;. Cannot insert duplicate key in object &#8216;dbo.#missingIndexes&#8217;. The duplicate key value is (32767, 1003234025).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roman</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-5507</link>
		<dc:creator>Roman</dc:creator>
		<pubDate>Fri, 31 Dec 2010 11:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-5507</guid>
		<description>Hi Michelle

Looks like stor proc does not work if database name has dot.
If db names is TechOnsite.HelpDesk then you will have error:

Msg 50000, Level 15, State 1, Procedure dba_logError_sp, Line 152
Database &#039;TechOnsite&#039; does not exist. Make sure that the name is entered correctly.</description>
		<content:encoded><![CDATA[<p>Hi Michelle</p>
<p>Looks like stor proc does not work if database name has dot.<br />
If db names is TechOnsite.HelpDesk then you will have error:</p>
<p>Msg 50000, Level 15, State 1, Procedure dba_logError_sp, Line 152<br />
Database &#8216;TechOnsite&#8217; does not exist. Make sure that the name is entered correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Montrial</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-5171</link>
		<dc:creator>Montrial</dc:creator>
		<pubDate>Wed, 16 Jun 2010 13:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-5171</guid>
		<description>Thanks again Michelle for your awesome posts. You just saved me a lot of time. Again!!</description>
		<content:encoded><![CDATA[<p>Thanks again Michelle for your awesome posts. You just saved me a lot of time. Again!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ewan</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-5093</link>
		<dc:creator>Ewan</dc:creator>
		<pubDate>Thu, 01 Apr 2010 08:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-5093</guid>
		<description>Hi Michelle

Love your blog. I read a different blog recently, and remembered your USE ? statement here. In SQL2005 SP2, the object_id function was upgraded - you can now use object_id(objid, dbid) to return the object name! 

HTH

Ewan</description>
		<content:encoded><![CDATA[<p>Hi Michelle</p>
<p>Love your blog. I read a different blog recently, and remembered your USE ? statement here. In SQL2005 SP2, the object_id function was upgraded &#8211; you can now use object_id(objid, dbid) to return the object name! </p>
<p>HTH</p>
<p>Ewan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kobe Lenjou</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-5082</link>
		<dc:creator>Kobe Lenjou</dc:creator>
		<pubDate>Mon, 15 Mar 2010 14:09:13 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-5082</guid>
		<description>I made a small change, you should change the two occurances of

EXECUTE sp_msForEachDB &#039;Use ?;

to 

EXECUTE sp_msForEachDB &#039;Use [?]; 

for those of uw who have funky database names.</description>
		<content:encoded><![CDATA[<p>I made a small change, you should change the two occurances of</p>
<p>EXECUTE sp_msForEachDB &#8216;Use ?;</p>
<p>to </p>
<p>EXECUTE sp_msForEachDB &#8216;Use [?]; </p>
<p>for those of uw who have funky database names.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Rambling DBA: Jonathan Kehayias</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-4861</link>
		<dc:creator>The Rambling DBA: Jonathan Kehayias</dc:creator>
		<pubDate>Mon, 27 Jul 2009 15:27:44 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-4861</guid>
		<description>&lt;strong&gt;Digging into the SQL Plan Cache: Finding Missing Indexes...&lt;/strong&gt;

This is one of those topics I planned to blog about a long time ago, but never actually got around to...</description>
		<content:encoded><![CDATA[<p><strong>Digging into the SQL Plan Cache: Finding Missing Indexes&#8230;</strong></p>
<p>This is one of those topics I planned to blog about a long time ago, but never actually got around to&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe tigeleiro</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-3769</link>
		<dc:creator>joe tigeleiro</dc:creator>
		<pubDate>Tue, 19 May 2009 18:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-3769</guid>
		<description>Is their a way to generate the missing index detail information into a create index statements just like SSMS does?  It would be? I could find how SSMS parses the information.</description>
		<content:encoded><![CDATA[<p>Is their a way to generate the missing index detail information into a create index statements just like SSMS does?  It would be? I could find how SSMS parses the information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Groszko</title>
		<link>http://sqlfool.com/2009/03/find-missing-indexes/comment-page-1/#comment-2973</link>
		<dc:creator>Tom Groszko</dc:creator>
		<pubDate>Tue, 28 Apr 2009 20:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://sqlfool.com/?p=572#comment-2973</guid>
		<description>I had not seen, at least not noticed, the missing index comment before in query plans. What other kinds of things are there in these plans that could just as easily be searched for?



Thanks</description>
		<content:encoded><![CDATA[<p>I had not seen, at least not noticed, the missing index comment before in query plans. What other kinds of things are there in these plans that could just as easily be searched for?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

