<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Find_Busy_MS_SQL_Databases</id>
		<title>Find Busy MS SQL Databases - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Find_Busy_MS_SQL_Databases"/>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Find_Busy_MS_SQL_Databases&amp;action=history"/>
		<updated>2026-04-15T03:02:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Find_Busy_MS_SQL_Databases&amp;diff=2008&amp;oldid=prev</id>
		<title>Briana: Created page with &quot;__FORCETOC__  Here are a few SQL queries that will help track down a busy database.   ==Find High Read and Write Databases== This SQL query will return the Read, Write and sql...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Find_Busy_MS_SQL_Databases&amp;diff=2008&amp;oldid=prev"/>
				<updated>2014-03-03T19:20:45Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;__FORCETOC__  Here are a few SQL queries that will help track down a busy database.   ==Find High Read and Write Databases== This SQL query will return the Read, Write and sql...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
Here are a few SQL queries that will help track down a busy database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Find High Read and Write Databases==&lt;br /&gt;
This SQL query will return the Read, Write and sql_handle values.  The sql_handle will be a real long combination of numbers and characters. &lt;br /&gt;
&lt;br /&gt;
 SELECT total_logical_reads, total_logical_writes, sql_handle&lt;br /&gt;
 FROM sys.dm_exec_query_stats deqs ORDER BY total_logical_writes DESC &lt;br /&gt;
&lt;br /&gt;
Then once you have the sql_handle, you can use this query to get deeper details into what databases are associated with that sql_handle The sql_handle below is just an example sql_handle.  Replace it with the sql_handle from above.&lt;br /&gt;
&lt;br /&gt;
 SELECT DB_NAME(dbid) AS DatabaseName, stats.execution_count, stats.total_logical_reads, stats.total_logical_writes, stats.total_worker_time, [text] FROM &lt;br /&gt;
 sys.dm_exec_query_stats stats CROSS APPLY sys.dm_exec_sql_text(stats.plan_handle) WHERE stats.sql_handle = &lt;br /&gt;
 0000123000ABCDEFG012345662F79CED6831812AFE8B0853F2E570000000000000000000000000000000000000000; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Databases-MSSQL]]&lt;/div&gt;</summary>
		<author><name>Briana</name></author>	</entry>

	</feed>