<?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; Find Total Number of Transaction on Interval</title>
	<atom:link href="http://blog.sqlauthority.com/2010/10/04/sql-server-find-total-number-of-transaction-on-interval/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2010/10/04/sql-server-find-total-number-of-transaction-on-interval/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Wed, 22 May 2013 19:03:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Kin</title>
		<link>http://blog.sqlauthority.com/2010/10/04/sql-server-find-total-number-of-transaction-on-interval/#comment-356227</link>
		<dc:creator><![CDATA[Kin]]></dc:creator>
		<pubDate>Fri, 05 Oct 2012 15:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10377#comment-356227</guid>
		<description><![CDATA[I know that this is very old article... but in order to make query dynamic irrespective of the instance name or default instance, below is the code:

-- First PASS
DECLARE @First INT
DECLARE @Second INT
SELECT @First = cntr_value
FROM sys.dm_os_performance_counters
WHERE OBJECT_NAME = CASE 
		WHEN SERVERPROPERTY(&#039;InstanceName&#039;) IS NULL
			THEN &#039;SQLServer&#039;
		ELSE &#039;MSSQL$&#039; + CAST(SERVERPROPERTY(&#039;InstanceName&#039;) AS VARCHAR)
		END + &#039;:Databases&#039; -- Change name of your server
AND counter_name = &#039;Transactions/sec&#039;
AND instance_name = &#039;_Total&#039;;
-- Following is the delay
WAITFOR DELAY &#039;00:01:00&#039;
-- Second PASS
SELECT @Second = cntr_value
FROM sys.dm_os_performance_counters
WHERE OBJECT_NAME = CASE 
		WHEN SERVERPROPERTY(&#039;InstanceName&#039;) IS NULL
			THEN &#039;SQLServer&#039;
		ELSE &#039;MSSQL$&#039; + CAST(SERVERPROPERTY(&#039;InstanceName&#039;) AS VARCHAR)
		END + &#039;:Databases&#039; -- Change name of your server
AND counter_name = &#039;Transactions/sec&#039;
AND instance_name = &#039;_Total&#039;;
SELECT (@Second - @First) &#039;TotalTransactions&#039;
GO]]></description>
		<content:encoded><![CDATA[<p>I know that this is very old article&#8230; but in order to make query dynamic irrespective of the instance name or default instance, below is the code:</p>
<p>&#8211; First PASS<br />
DECLARE @First INT<br />
DECLARE @Second INT<br />
SELECT @First = cntr_value<br />
FROM sys.dm_os_performance_counters<br />
WHERE OBJECT_NAME = CASE<br />
		WHEN SERVERPROPERTY(&#8216;InstanceName&#8217;) IS NULL<br />
			THEN &#8216;SQLServer&#8217;<br />
		ELSE &#8216;MSSQL$&#8217; + CAST(SERVERPROPERTY(&#8216;InstanceName&#8217;) AS VARCHAR)<br />
		END + &#8216;:Databases&#8217; &#8212; Change name of your server<br />
AND counter_name = &#8216;Transactions/sec&#8217;<br />
AND instance_name = &#8216;_Total&#8217;;<br />
&#8211; Following is the delay<br />
WAITFOR DELAY &#8217;00:01:00&#8242;<br />
&#8211; Second PASS<br />
SELECT @Second = cntr_value<br />
FROM sys.dm_os_performance_counters<br />
WHERE OBJECT_NAME = CASE<br />
		WHEN SERVERPROPERTY(&#8216;InstanceName&#8217;) IS NULL<br />
			THEN &#8216;SQLServer&#8217;<br />
		ELSE &#8216;MSSQL$&#8217; + CAST(SERVERPROPERTY(&#8216;InstanceName&#8217;) AS VARCHAR)<br />
		END + &#8216;:Databases&#8217; &#8212; Change name of your server<br />
AND counter_name = &#8216;Transactions/sec&#8217;<br />
AND instance_name = &#8216;_Total&#8217;;<br />
SELECT (@Second &#8211; @First) &#8216;TotalTransactions&#8217;<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tflowers</title>
		<link>http://blog.sqlauthority.com/2010/10/04/sql-server-find-total-number-of-transaction-on-interval/#comment-250147</link>
		<dc:creator><![CDATA[tflowers]]></dc:creator>
		<pubDate>Wed, 08 Feb 2012 21:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10377#comment-250147</guid>
		<description><![CDATA[Pinal, I really like your posts...  short, sweet, and directly to the point. Always useful.]]></description>
		<content:encoded><![CDATA[<p>Pinal, I really like your posts&#8230;  short, sweet, and directly to the point. Always useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prasad</title>
		<link>http://blog.sqlauthority.com/2010/10/04/sql-server-find-total-number-of-transaction-on-interval/#comment-178321</link>
		<dc:creator><![CDATA[prasad]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 09:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10377#comment-178321</guid>
		<description><![CDATA[can anybody please explain me about the instance_name &#039;_Total&#039; ,iam confused about it]]></description>
		<content:encoded><![CDATA[<p>can anybody please explain me about the instance_name &#8216;_Total&#8217; ,iam confused about it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dhanhamsan G</title>
		<link>http://blog.sqlauthority.com/2010/10/04/sql-server-find-total-number-of-transaction-on-interval/#comment-94326</link>
		<dc:creator><![CDATA[Dhanhamsan G]]></dc:creator>
		<pubDate>Wed, 20 Oct 2010 00:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10377#comment-94326</guid>
		<description><![CDATA[You can enable Change Tracking, to track the changes to the database-table.
Benefits here would be:
1) You can track changes which you are trying to troubleshoot.
2) You can get the more info on whether you have more INSERTS/DELETES/UPDATES.

I guess the query you have suggested wont help me much in pinning down the suffering table]]></description>
		<content:encoded><![CDATA[<p>You can enable Change Tracking, to track the changes to the database-table.<br />
Benefits here would be:<br />
1) You can track changes which you are trying to troubleshoot.<br />
2) You can get the more info on whether you have more INSERTS/DELETES/UPDATES.</p>
<p>I guess the query you have suggested wont help me much in pinning down the suffering table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: veepool</title>
		<link>http://blog.sqlauthority.com/2010/10/04/sql-server-find-total-number-of-transaction-on-interval/#comment-91313</link>
		<dc:creator><![CDATA[veepool]]></dc:creator>
		<pubDate>Tue, 05 Oct 2010 13:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10377#comment-91313</guid>
		<description><![CDATA[Thanks ,
Nice Script,

I had changed it as follows so it would work on my Sql sever instance.

-- First PASS
DECLARE @First INT
DECLARE @Second INT
SELECT @First = cntr_value
FROM sys.dm_os_performance_counters
WHERE OBJECT_NAME LIKE  &#039;%Databases%&#039; -- Change name of your server
AND counter_name like &#039;%Transactions/sec%&#039;
AND instance_name like &#039;%_Total%&#039;;

SELECT @First
-- Following is the delay
WAITFOR DELAY &#039;00:00:30&#039;
-- Second PASS
SELECT @Second = cntr_value
FROM sys.dm_os_performance_counters
WHERE OBJECT_NAME LIKE  &#039;%Databases%&#039; -- Change name of your server
AND counter_name like &#039;%Transactions/sec%&#039;
AND instance_name like &#039;%_Total%&#039;;
SELECT @Second

SELECT (@Second - @First) &#039;TotalTransactions&#039;
GO]]></description>
		<content:encoded><![CDATA[<p>Thanks ,<br />
Nice Script,</p>
<p>I had changed it as follows so it would work on my Sql sever instance.</p>
<p>&#8211; First PASS<br />
DECLARE @First INT<br />
DECLARE @Second INT<br />
SELECT @First = cntr_value<br />
FROM sys.dm_os_performance_counters<br />
WHERE OBJECT_NAME LIKE  &#8216;%Databases%&#8217; &#8212; Change name of your server<br />
AND counter_name like &#8216;%Transactions/sec%&#8217;<br />
AND instance_name like &#8216;%_Total%&#8217;;</p>
<p>SELECT @First<br />
&#8211; Following is the delay<br />
WAITFOR DELAY &#8217;00:00:30&#8242;<br />
&#8211; Second PASS<br />
SELECT @Second = cntr_value<br />
FROM sys.dm_os_performance_counters<br />
WHERE OBJECT_NAME LIKE  &#8216;%Databases%&#8217; &#8212; Change name of your server<br />
AND counter_name like &#8216;%Transactions/sec%&#8217;<br />
AND instance_name like &#8216;%_Total%&#8217;;<br />
SELECT @Second</p>
<p>SELECT (@Second &#8211; @First) &#8216;TotalTransactions&#8217;<br />
GO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ermoas</title>
		<link>http://blog.sqlauthority.com/2010/10/04/sql-server-find-total-number-of-transaction-on-interval/#comment-91142</link>
		<dc:creator><![CDATA[ermoas]]></dc:creator>
		<pubDate>Tue, 05 Oct 2010 00:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=10377#comment-91142</guid>
		<description><![CDATA[Thanks Pinal, this sure comes handy..]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal, this sure comes handy..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
