<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Identify Most Resource Intensive Queries &#8211; SQL in Sixty Seconds #029 &#8211; Video</title>
	<atom:link href="http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Wed, 19 Jun 2013 21:45:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Harsh</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-361004</link>
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Wed, 17 Oct 2012 05:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-361004</guid>
		<description><![CDATA[Yes, In modified script, type=2 portion is missing from right join , this change will be enough to get count of non-clustered indexes]]></description>
		<content:encoded><![CDATA[<p>Yes, In modified script, type=2 portion is missing from right join , this change will be enough to get count of non-clustered indexes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijay Aggrawal</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-360843</link>
		<dc:creator><![CDATA[Vijay Aggrawal]]></dc:creator>
		<pubDate>Tue, 16 Oct 2012 19:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-360843</guid>
		<description><![CDATA[The count of nonclustered index is actually returning total count of index type which includes Heap, clustered, non clustered.

SELECT 
	[schema_name] = s.name
	,table_name = o.name
	,MAX(i1.type_desc) ClusteredIndexorHeap
	,MAX(COALESCE(i2.NCIC,0)) NoOfNonClusteredIndex
	,p.rows
FROM sys.indexes i
RIGHT JOIN sys.objects o 
ON i.[object_id] = o.[object_id]
INNER JOIN sys.schemas s 
ON o.[schema_id] = s.[schema_id]
LEFT JOIN sys.partitions p 
ON p.OBJECT_ID = o.OBJECT_ID AND p.index_id IN (0,1)
LEFT JOIN sys.indexes i1 
ON i.OBJECT_ID = i1.OBJECT_ID AND i1.TYPE IN (0,1)
LEFT JOIN (
	SELECT object_id,COUNT(Index_id) NCIC
	FROM sys.indexes
	where type = 2
	GROUP BY object_id) I2
ON i.OBJECT_ID = i2.OBJECT_ID
WHERE o.TYPE IN (&#039;U&#039;)
GROUP BY s.name, o.name, p.rows
ORDER BY schema_name, table_name

Now the column of NoOfNonClusteredIndexes will return count of non clustered indexes only.

The query may be further optimized.]]></description>
		<content:encoded><![CDATA[<p>The count of nonclustered index is actually returning total count of index type which includes Heap, clustered, non clustered.</p>
<p>SELECT<br />
	[schema_name] = s.name<br />
	,table_name = o.name<br />
	,MAX(i1.type_desc) ClusteredIndexorHeap<br />
	,MAX(COALESCE(i2.NCIC,0)) NoOfNonClusteredIndex<br />
	,p.rows<br />
FROM sys.indexes i<br />
RIGHT JOIN sys.objects o<br />
ON i.[object_id] = o.[object_id]<br />
INNER JOIN sys.schemas s<br />
ON o.[schema_id] = s.[schema_id]<br />
LEFT JOIN sys.partitions p<br />
ON p.OBJECT_ID = o.OBJECT_ID AND p.index_id IN (0,1)<br />
LEFT JOIN sys.indexes i1<br />
ON i.OBJECT_ID = i1.OBJECT_ID AND i1.TYPE IN (0,1)<br />
LEFT JOIN (<br />
	SELECT object_id,COUNT(Index_id) NCIC<br />
	FROM sys.indexes<br />
	where type = 2<br />
	GROUP BY object_id) I2<br />
ON i.OBJECT_ID = i2.OBJECT_ID<br />
WHERE o.TYPE IN (&#8216;U&#8217;)<br />
GROUP BY s.name, o.name, p.rows<br />
ORDER BY schema_name, table_name</p>
<p>Now the column of NoOfNonClusteredIndexes will return count of non clustered indexes only.</p>
<p>The query may be further optimized.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandeep</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-358636</link>
		<dc:creator><![CDATA[sandeep]]></dc:creator>
		<pubDate>Thu, 11 Oct 2012 04:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-358636</guid>
		<description><![CDATA[Hi sir , can you please help me on below requirement

I had two servers

server 1 -------SSIS Package is present
server 2----- EXe location

I had SSIS Package in server 1 , at one step am calling the exe present in server 2 and passing arguments and working directory to server 2

when i execute the package the package should execute in Server 1, but when it trigger to exe the exe should execute in server 2 not in server 1

can any one help me on these i can use dotnet also

thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hi sir , can you please help me on below requirement</p>
<p>I had two servers</p>
<p>server 1 &#8212;&#8212;-SSIS Package is present<br />
server 2&#8212;&#8211; EXe location</p>
<p>I had SSIS Package in server 1 , at one step am calling the exe present in server 2 and passing arguments and working directory to server 2</p>
<p>when i execute the package the package should execute in Server 1, but when it trigger to exe the exe should execute in server 2 not in server 1</p>
<p>can any one help me on these i can use dotnet also</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rithu</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-358223</link>
		<dc:creator><![CDATA[Rithu]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 08:13:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-358223</guid>
		<description><![CDATA[I think rather than the toal number of non clustered indexes, it returns the total number of statistics on that table !]]></description>
		<content:encoded><![CDATA[<p>I think rather than the toal number of non clustered indexes, it returns the total number of statistics on that table !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rémi BOURGAREL</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-358218</link>
		<dc:creator><![CDATA[Rémi BOURGAREL]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 08:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-358218</guid>
		<description><![CDATA[The video is available anymore, can you send it again ?]]></description>
		<content:encoded><![CDATA[<p>The video is available anymore, can you send it again ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-358169</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 05:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-358169</guid>
		<description><![CDATA[Fixed. You have a big High Five from me!]]></description>
		<content:encoded><![CDATA[<p>Fixed. You have a big High Five from me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsh</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-358168</link>
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 05:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-358168</guid>
		<description><![CDATA[One more change required in your script.
Joining Criteria of i1 should have o.OBJECT_ID in place of i.OBJECT_ID]]></description>
		<content:encoded><![CDATA[<p>One more change required in your script.<br />
Joining Criteria of i1 should have o.OBJECT_ID in place of i.OBJECT_ID</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-358164</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 05:41:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-358164</guid>
		<description><![CDATA[Harsh,

I do not know how did I miss that. :-) Fixed!]]></description>
		<content:encoded><![CDATA[<p>Harsh,</p>
<p>I do not know how did I miss that. :-) Fixed!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsh</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-358162</link>
		<dc:creator><![CDATA[Harsh]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 05:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-358162</guid>
		<description><![CDATA[This script returns only details of tables which do not have any non-clustered indexes.

Script should be:

SELECT [schema_name] = s.name, table_name = o.name,
MAX(i1.type_desc) ClusteredIndexorHeap,
COUNT(i.TYPE) NoOfNonClusteredIndex, p.rows
FROM sys.indexes i
RIGHT JOIN sys.objects o ON i.[object_id] = o.[object_id] AND i.TYPE=2
INNER JOIN sys.schemas s ON o.[schema_id] = s.[schema_id]
LEFT JOIN sys.partitions p ON p.OBJECT_ID = o.OBJECT_ID AND p.index_id IN (0,1)
LEFT JOIN sys.indexes i1 ON o.OBJECT_ID = i1.OBJECT_ID AND i1.TYPE IN (0,1)
WHERE o.TYPE IN (&#039;U&#039;)
GROUP BY s.name, o.name, p.rows
ORDER BY schema_name, table_name]]></description>
		<content:encoded><![CDATA[<p>This script returns only details of tables which do not have any non-clustered indexes.</p>
<p>Script should be:</p>
<p>SELECT [schema_name] = s.name, table_name = o.name,<br />
MAX(i1.type_desc) ClusteredIndexorHeap,<br />
COUNT(i.TYPE) NoOfNonClusteredIndex, p.rows<br />
FROM sys.indexes i<br />
RIGHT JOIN sys.objects o ON i.[object_id] = o.[object_id] AND i.TYPE=2<br />
INNER JOIN sys.schemas s ON o.[schema_id] = s.[schema_id]<br />
LEFT JOIN sys.partitions p ON p.OBJECT_ID = o.OBJECT_ID AND p.index_id IN (0,1)<br />
LEFT JOIN sys.indexes i1 ON o.OBJECT_ID = i1.OBJECT_ID AND i1.TYPE IN (0,1)<br />
WHERE o.TYPE IN (&#8216;U&#8217;)<br />
GROUP BY s.name, o.name, p.rows<br />
ORDER BY schema_name, table_name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satya Chaitanya</title>
		<link>http://blog.sqlauthority.com/2012/10/10/sql-server-identify-most-resource-intensive-queries-sql-in-sixty-seconds-029-video/#comment-358137</link>
		<dc:creator><![CDATA[Satya Chaitanya]]></dc:creator>
		<pubDate>Wed, 10 Oct 2012 04:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=21101#comment-358137</guid>
		<description><![CDATA[Very informative....

what is meant by logical sorting and physical sorting of data in terms of index..]]></description>
		<content:encoded><![CDATA[<p>Very informative&#8230;.</p>
<p>what is meant by logical sorting and physical sorting of data in terms of index..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
