<?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; 2005 -Track Down Active Transactions Using T-SQL</title>
	<atom:link href="http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Wed, 17 Mar 2010 03:19:03 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Revathy</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-54729</link>
		<dc:creator>Revathy</dc:creator>
		<pubDate>Tue, 11 Aug 2009 10:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-54729</guid>
		<description>hi dave 

i got an idea about  active transaction&#039;s count  in a database 

with your query.but i have one query,how can i measure 

the &quot;hit count&quot; second for a paticular transaction in table 

like (it may be single updation,bulk copy of data&#039;s insertion),

so how can i measure the second&#039;s count.


Thanks in Advance 

Revathy</description>
		<content:encoded><![CDATA[<p>hi dave </p>
<p>i got an idea about  active transaction&#8217;s count  in a database </p>
<p>with your query.but i have one query,how can i measure </p>
<p>the &#8220;hit count&#8221; second for a paticular transaction in table </p>
<p>like (it may be single updation,bulk copy of data&#8217;s insertion),</p>
<p>so how can i measure the second&#8217;s count.</p>
<p>Thanks in Advance </p>
<p>Revathy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramu</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-53256</link>
		<dc:creator>ramu</dc:creator>
		<pubDate>Thu, 25 Jun 2009 14:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-53256</guid>
		<description>i got the answer..........if anybody dont know then it will helpful

for implicit-transactions

set implicit_transactions on 
set implicit_transactions off

example is(no need of begin tran)

update authors
set phone=&#039;9866530517&#039;
where au_id=&#039;756-30-7391&#039;
update publishers
set city=&#039;hyderabad&#039;,country=&#039;india&#039;
where pub_id=&#039;9952&#039;
commit tran</description>
		<content:encoded><![CDATA[<p>i got the answer&#8230;&#8230;&#8230;.if anybody dont know then it will helpful</p>
<p>for implicit-transactions</p>
<p>set implicit_transactions on<br />
set implicit_transactions off</p>
<p>example is(no need of begin tran)</p>
<p>update authors<br />
set phone=&#8217;9866530517&#8242;<br />
where au_id=&#8217;756-30-7391&#8242;<br />
update publishers<br />
set city=&#8217;hyderabad&#8217;,country=&#8217;india&#8217;<br />
where pub_id=&#8217;9952&#8242;<br />
commit tran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramu</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-53251</link>
		<dc:creator>ramu</dc:creator>
		<pubDate>Thu, 25 Jun 2009 11:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-53251</guid>
		<description>hi pinal sir,
            i am havng doubt regarding transactions......in oracle we need not give explicitly BEGIN TRAN.......... In sqlserver 2000 also.........we have to write BEGIN TRAN explicitly.........
i heard that  in sqlserver 2000 also we need not write explicitly.....by setting some values...........how can i?.........tell me the solution</description>
		<content:encoded><![CDATA[<p>hi pinal sir,<br />
            i am havng doubt regarding transactions&#8230;&#8230;in oracle we need not give explicitly BEGIN TRAN&#8230;&#8230;&#8230;. In sqlserver 2000 also&#8230;&#8230;&#8230;we have to write BEGIN TRAN explicitly&#8230;&#8230;&#8230;<br />
i heard that  in sqlserver 2000 also we need not write explicitly&#8230;..by setting some values&#8230;&#8230;&#8230;..how can i?&#8230;&#8230;&#8230;tell me the solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satya</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-45889</link>
		<dc:creator>Satya</dc:creator>
		<pubDate>Thu, 22 Jan 2009 09:18:23 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-45889</guid>
		<description>Hi All,
I am writing stored procedure for transfering data from 5 staging tables to 5 master tables using sql server 2005 which are in same db and same server.
I have following requirements
--&gt;I will first check the count in both staging and master tables
--&gt;if staging table count is greater than master table count then
--&gt;truncate master table records.
--&gt;then insert query executes which fetches records from staging to master table.
Among 5 tables last two are dependent.
For each staging to master table i am writnig individual 
Transaction.

But the problem is when i am executing this sql server getting very slow almost getting struck.

Is this the correct way which i am following if not please suggest me the right way.
its really urgent.
Thanks in advance for any help</description>
		<content:encoded><![CDATA[<p>Hi All,<br />
I am writing stored procedure for transfering data from 5 staging tables to 5 master tables using sql server 2005 which are in same db and same server.<br />
I have following requirements<br />
&#8211;&gt;I will first check the count in both staging and master tables<br />
&#8211;&gt;if staging table count is greater than master table count then<br />
&#8211;&gt;truncate master table records.<br />
&#8211;&gt;then insert query executes which fetches records from staging to master table.<br />
Among 5 tables last two are dependent.<br />
For each staging to master table i am writnig individual<br />
Transaction.</p>
<p>But the problem is when i am executing this sql server getting very slow almost getting struck.</p>
<p>Is this the correct way which i am following if not please suggest me the right way.<br />
its really urgent.<br />
Thanks in advance for any help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Goms</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-43427</link>
		<dc:creator>Goms</dc:creator>
		<pubDate>Wed, 01 Oct 2008 12:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-43427</guid>
		<description>Hi pinal,

I want to trace the users activity in database.I  able to trace ddl transcation using trigger.But  when i try to track the dml
transaction using event_data() it will not work.
so how to track the users dml activity or shall i  run the sql profiler?.If yes pls give me the clear picture abt sql profiler


pls mail me on gomsbox@yahoo.com


Thanks
Goms</description>
		<content:encoded><![CDATA[<p>Hi pinal,</p>
<p>I want to trace the users activity in database.I  able to trace ddl transcation using trigger.But  when i try to track the dml<br />
transaction using event_data() it will not work.<br />
so how to track the users dml activity or shall i  run the sql profiler?.If yes pls give me the clear picture abt sql profiler</p>
<p>pls mail me on <a href="mailto:gomsbox@yahoo.com">gomsbox@yahoo.com</a></p>
<p>Thanks<br />
Goms</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pankaj</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-42985</link>
		<dc:creator>pankaj</dc:creator>
		<pubDate>Fri, 19 Sep 2008 12:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-42985</guid>
		<description>hi pinal,
           i  preparing for interview in sql server plz mail me on p.adhikari1981@gmail.com 

some   query(technical) which is asked in interview</description>
		<content:encoded><![CDATA[<p>hi pinal,<br />
           i  preparing for interview in sql server plz mail me on <a href="mailto:p.adhikari1981@gmail.com">p.adhikari1981@gmail.com</a> </p>
<p>some   query(technical) which is asked in interview</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emeka</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-40794</link>
		<dc:creator>Emeka</dc:creator>
		<pubDate>Fri, 25 Jul 2008 06:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-40794</guid>
		<description>@Virag,

With SQL Server 2000, Unfortunately no. However you can run a dbcc opentran(&#039;databasename&#039;) on 2000/05.

This will only give you the longest running transaction in that database.</description>
		<content:encoded><![CDATA[<p>@Virag,</p>
<p>With SQL Server 2000, Unfortunately no. However you can run a dbcc opentran(&#8216;databasename&#8217;) on 2000/05.</p>
<p>This will only give you the longest running transaction in that database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viraj</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-40789</link>
		<dc:creator>Viraj</dc:creator>
		<pubDate>Fri, 25 Jul 2008 04:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-40789</guid>
		<description>Dear Emeka,

Thanks 4 ur reply.
I wonder, is there any similiar type of DMV or other similiar concept in SQL 2000 !!!

Regards,
Viraj</description>
		<content:encoded><![CDATA[<p>Dear Emeka,</p>
<p>Thanks 4 ur reply.<br />
I wonder, is there any similiar type of DMV or other similiar concept in SQL 2000 !!!</p>
<p>Regards,<br />
Viraj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emeka</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-40786</link>
		<dc:creator>Emeka</dc:creator>
		<pubDate>Fri, 25 Jul 2008 00:23:54 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-40786</guid>
		<description>@Sandeep

Because it is on standby mode, the restore is not finished yet. sql server is expecting you to  
apply more backups. when when you are about to apply the last backup,
choose the RECOVERY option. This tells SQL server that the restore is finished.

IN a situation where you have only one backup file to restore, you should always choose the RECOVERY option
except when you are log shipping or mirroring database.


To solve your problem, restore the DB with the RECOVERY option.
You can then detach it and re-attach it.</description>
		<content:encoded><![CDATA[<p>@Sandeep</p>
<p>Because it is on standby mode, the restore is not finished yet. sql server is expecting you to<br />
apply more backups. when when you are about to apply the last backup,<br />
choose the RECOVERY option. This tells SQL server that the restore is finished.</p>
<p>IN a situation where you have only one backup file to restore, you should always choose the RECOVERY option<br />
except when you are log shipping or mirroring database.</p>
<p>To solve your problem, restore the DB with the RECOVERY option.<br />
You can then detach it and re-attach it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emeka</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-40785</link>
		<dc:creator>Emeka</dc:creator>
		<pubDate>Fri, 25 Jul 2008 00:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-40785</guid>
		<description>@Viraj

That piece of sql doesn&#039;t work in sql 2000. The Dynamic management view is one of the new features in SQL Server  2005 you can use to query the health of sql server 2005.

For it to work, you have to run it in SQL server 2005 environment.</description>
		<content:encoded><![CDATA[<p>@Viraj</p>
<p>That piece of sql doesn&#8217;t work in sql 2000. The Dynamic management view is one of the new features in SQL Server  2005 you can use to query the health of sql server 2005.</p>
<p>For it to work, you have to run it in SQL server 2005 environment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diablo</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-40783</link>
		<dc:creator>Diablo</dc:creator>
		<pubDate>Thu, 24 Jul 2008 22:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-40783</guid>
		<description>Very useful. Thanks.</description>
		<content:encoded><![CDATA[<p>Very useful. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamran Shahid</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-40750</link>
		<dc:creator>Kamran Shahid</dc:creator>
		<pubDate>Thu, 24 Jul 2008 11:29:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-40750</guid>
		<description>Nice Data Management View</description>
		<content:encoded><![CDATA[<p>Nice Data Management View</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandeep</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-40742</link>
		<dc:creator>Sandeep</dc:creator>
		<pubDate>Thu, 24 Jul 2008 08:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-40742</guid>
		<description>can i attach a read only restored database. I restored a
database Test in Stand by Mode. After that i detached that database and while restoring i m getting msg &quot;Cannot attach a database that was
being restored.&quot;. 
Is it  that i can not attach a readonly restored
detached database ?</description>
		<content:encoded><![CDATA[<p>can i attach a read only restored database. I restored a<br />
database Test in Stand by Mode. After that i detached that database and while restoring i m getting msg &#8220;Cannot attach a database that was<br />
being restored.&#8221;.<br />
Is it  that i can not attach a readonly restored<br />
detached database ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viraj</title>
		<link>http://blog.sqlauthority.com/2008/07/24/sql-server-2005-track-down-active-transactions-using-t-sql/#comment-40730</link>
		<dc:creator>Viraj</dc:creator>
		<pubDate>Thu, 24 Jul 2008 04:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=730#comment-40730</guid>
		<description>Dear Pinal,

I am using SQL 2000. I tried executing the command. 

It gave following error : 
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name &#039;sys.dm_tran_session_transactions&#039;.

I tried using Master and TempDB databases, but same error persisted.

Kindly suggest.

Regards,
Viraj</description>
		<content:encoded><![CDATA[<p>Dear Pinal,</p>
<p>I am using SQL 2000. I tried executing the command. </p>
<p>It gave following error :<br />
Server: Msg 208, Level 16, State 1, Line 1<br />
Invalid object name &#8217;sys.dm_tran_session_transactions&#8217;.</p>
<p>I tried using Master and TempDB databases, but same error persisted.</p>
<p>Kindly suggest.</p>
<p>Regards,<br />
Viraj</p>
]]></content:encoded>
	</item>
</channel>
</rss>
