<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sp_monitor &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/sp_monitor/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Fri, 18 Aug 2017 19:36:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>SQL Server: sp_monitor to compare the server statistics for different executions</title>
		<link>https://www.dbrnd.com/2017/08/sql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 30 Aug 2017 16:16:46 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[cpu_busy]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[sp_monitor]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=6002</guid>

					<description><![CDATA[In this post, I am sharing the use of sp_monitor which we can use to compare the SQL Server Statistics like CPU usage, Packets received/sent, total read/write for between the different query executions. The sp_monitor is a very handy and you can note down the exact server usage between your executions. How can I use? [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions%2F&amp;linkname=SQL%20Server%3A%20sp_monitor%20to%20compare%20the%20server%20statistics%20for%20different%20executions" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions%2F&amp;linkname=SQL%20Server%3A%20sp_monitor%20to%20compare%20the%20server%20statistics%20for%20different%20executions" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions%2F&amp;linkname=SQL%20Server%3A%20sp_monitor%20to%20compare%20the%20server%20statistics%20for%20different%20executions" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions%2F&amp;linkname=SQL%20Server%3A%20sp_monitor%20to%20compare%20the%20server%20statistics%20for%20different%20executions" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions%2F&amp;linkname=SQL%20Server%3A%20sp_monitor%20to%20compare%20the%20server%20statistics%20for%20different%20executions" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions%2F&amp;linkname=SQL%20Server%3A%20sp_monitor%20to%20compare%20the%20server%20statistics%20for%20different%20executions" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions%2F&#038;title=SQL%20Server%3A%20sp_monitor%20to%20compare%20the%20server%20statistics%20for%20different%20executions" data-a2a-url="https://www.dbrnd.com/2017/08/sql-server-sp_monitor-to-compare-the-server-statistics-for-different-executions/" data-a2a-title="SQL Server: sp_monitor to compare the server statistics for different executions"></a></p><p>In this post, I am sharing the use of sp_monitor which we can use to compare the SQL Server Statistics like CPU usage, Packets received/sent, total read/write for between the different query executions.</p>
<p><em>The sp_monitor is a very handy and you can note down the exact server usage between your executions.</em></p>
<p><strong>How can I use?</strong></p>
<blockquote><p>The usage is straightforward, </p>
<p>First, execute the sp_monitor and save/note down the statistics information (e.g, you executed at 08:08:00)<br />
Next, you can start your execution (e.g, your query took 10 minutes and completed at 08:18:00)<br />
Now, you can execute sp_monitor to check the server statistics for that 10 minutes.</p></blockquote>
<blockquote><p>The statistic prints in the form number(number)-number% or number(number).<br />
The number in parentheses refers to the number of seconds or total number since the last time sp_monitor was run. The percentage is the percentage of time since sp_monitor was the last run.</p>
<p>For example:<br />
cpu_busy as 8860(626)-70%<br />
the CPU has been busy 8860 seconds since SQL Server was last started up, 626 seconds since sp_monitor was the last run, and 70 percent of the total time since sp_monitor was the last run.</p></blockquote>
<p><strong>Sample execution:</strong></p>
<pre class="crayon-plain-tag">USE master  
EXEC sp_monitor</pre> </p>
<p><strong>Sample result:</strong></p>
<pre class="crayon-plain-tag">last_run                current_run             seconds
----------------------- ----------------------- -----------
2017-08-18 12:57:51.687 2017-08-18 12:58:02.427 11


cpu_busy                  io_busy                   idle
------------------------- ------------------------- -------------------------
75462(0)-0%               2084(0)-0%                2913471(9)-81%


packets_received         packets_sent             packet_errors
------------------------ ------------------------ ------------------------
45941145(68)             48348029(97)             27(0)


total_read          total_write         total_errors        connections
------------------- ------------------- ------------------- ------------------
7819213(220)        5783135(2)          0(0)                7208992(23)</pre> </p>
<p><strong>Aggressive check:</strong><br />
If you want to know about the usage of server statistics for your only single/dedicated execution, I would suggest to set your database in single-user mode and then check using sp_monitor. (This suggestion is only for your test server.)</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
