<?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: Quick and Dirty SQL Server Slow Query Log</title>
	<atom:link href="http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/</link>
	<description>The exciting life of a software developer and nerd</description>
	<lastBuildDate>Thu, 29 Jul 2010 02:49:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Flogiston &#187; MS SQL Server - Log slow queries</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-1242</link>
		<dc:creator>Flogiston &#187; MS SQL Server - Log slow queries</dc:creator>
		<pubDate>Mon, 01 Mar 2010 21:01:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-1242</guid>
		<description>[...] source: http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/ [...]</description>
		<content:encoded><![CDATA[<p>[...] source: <a href="http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/" rel="nofollow">http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig M. Rosenblum</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-1193</link>
		<dc:creator>Craig M. Rosenblum</dc:creator>
		<pubDate>Thu, 04 Feb 2010 18:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-1193</guid>
		<description>I can run the query in ssms, but i can&#039;t create a stored procedure that uses it, because of permissions issue.</description>
		<content:encoded><![CDATA[<p>I can run the query in ssms, but i can&#8217;t create a stored procedure that uses it, because of permissions issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bhartsock</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-1191</link>
		<dc:creator>bhartsock</dc:creator>
		<pubDate>Thu, 04 Feb 2010 14:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-1191</guid>
		<description>Sorry, I haven&#039;t seen anything for SQL 2000.</description>
		<content:encoded><![CDATA[<p>Sorry, I haven&#8217;t seen anything for SQL 2000.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig M. Rosenblum</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-1188</link>
		<dc:creator>Craig M. Rosenblum</dc:creator>
		<pubDate>Tue, 02 Feb 2010 17:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-1188</guid>
		<description>Is there a version of this for sql2000? My database is 2005, but we&#039;ve not yet converted to 2005 compatibility mode, so i can&#039;t use this script, even tho i want to so badly lol..

any suggestions?</description>
		<content:encoded><![CDATA[<p>Is there a version of this for sql2000? My database is 2005, but we&#8217;ve not yet converted to 2005 compatibility mode, so i can&#8217;t use this script, even tho i want to so badly lol..</p>
<p>any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blestab</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-1019</link>
		<dc:creator>blestab</dc:creator>
		<pubDate>Fri, 06 Nov 2009 21:54:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-1019</guid>
		<description>anyone with the SQL2000 version?????</description>
		<content:encoded><![CDATA[<p>anyone with the SQL2000 version?????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MUKESH</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-744</link>
		<dc:creator>MUKESH</dc:creator>
		<pubDate>Mon, 13 Jul 2009 14:28:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-744</guid>
		<description>Hi,

Is there any solution to get back the table after drop commmand.

I did it by restoring the backup but last transaction lost.

If you can help me for future purpost.

I am using SQL 2000

thanks and regards,</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Is there any solution to get back the table after drop commmand.</p>
<p>I did it by restoring the backup but last transaction lost.</p>
<p>If you can help me for future purpost.</p>
<p>I am using SQL 2000</p>
<p>thanks and regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-709</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 01 Jun 2009 22:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-709</guid>
		<description>Note that this query requires SQL Server 2005 or newer with the database running in compatibility mode 90 or higher. Otherwise, it throws a syntax error after the CROSS APPLY.</description>
		<content:encoded><![CDATA[<p>Note that this query requires SQL Server 2005 or newer with the database running in compatibility mode 90 or higher. Otherwise, it throws a syntax error after the CROSS APPLY.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-679</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 10 May 2009 10:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-679</guid>
		<description>Hi i found this really useful,

I actually found that looking at the full qt.text field is useful as it sometimes shows extra info and I put in a filter to stop this query actually being in the results see below.

/*Debug query */
SELECT TOP 100
qt.text as QUERY,
qs.execution_count, 
qs.total_logical_reads, qs.last_logical_reads,
qs.min_logical_reads, qs.max_logical_reads,
qs.total_elapsed_time, qs.last_elapsed_time,
qs.min_elapsed_time, qs.max_elapsed_time,
qs.last_execution_time,
qp.query_plan
FROM sys.dm_exec_query_stats qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt
CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp
WHERE qt.encrypted=0
and qt.text not like &#039;/*Debug query */%&#039;
ORDER BY qs.last_execution_time DESC, qs.total_logical_reads DESC</description>
		<content:encoded><![CDATA[<p>Hi i found this really useful,</p>
<p>I actually found that looking at the full qt.text field is useful as it sometimes shows extra info and I put in a filter to stop this query actually being in the results see below.</p>
<p>/*Debug query */<br />
SELECT TOP 100<br />
qt.text as QUERY,<br />
qs.execution_count,<br />
qs.total_logical_reads, qs.last_logical_reads,<br />
qs.min_logical_reads, qs.max_logical_reads,<br />
qs.total_elapsed_time, qs.last_elapsed_time,<br />
qs.min_elapsed_time, qs.max_elapsed_time,<br />
qs.last_execution_time,<br />
qp.query_plan<br />
FROM sys.dm_exec_query_stats qs<br />
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt<br />
CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp<br />
WHERE qt.encrypted=0<br />
and qt.text not like &#8216;/*Debug query */%&#8217;<br />
ORDER BY qs.last_execution_time DESC, qs.total_logical_reads DESC</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JC</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-562</link>
		<dc:creator>JC</dc:creator>
		<pubDate>Thu, 15 Jan 2009 14:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-562</guid>
		<description>Is there a similar query that will work on SQL server 2000?</description>
		<content:encoded><![CDATA[<p>Is there a similar query that will work on SQL server 2000?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drewski</title>
		<link>http://blog.brianhartsock.com/2008/12/16/quick-and-dirty-sql-server-slow-query-log/comment-page-1/#comment-552</link>
		<dc:creator>drewski</dc:creator>
		<pubDate>Thu, 18 Dec 2008 14:57:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianhartsock.com/?p=215#comment-552</guid>
		<description>Fantastic!</description>
		<content:encoded><![CDATA[<p>Fantastic!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
