Subscribe

SQLServer-DBA.com Links

Subscribe to newsletter

Dba_db2_button

Powered by TypePad
SQL Server - Monitoring a Rollback and sys.dm_exec_requests

22 November,2011 by Jack Vamvas

SQL  Rollback Transaction  is easy with  sys.dm_exec_requests. The dynamic management view (DMV) sys.dm_exec_requests returns information about each request that is executing within SQL Server.

Instead of using Activity Monitor to view the status of a Rollback , use this T-SQL code

Activity monitor is based on window panes and is cumbersome to export any information.

Using  t-sql allows extra flexibility in reporting.

 

select 
der.session_id, 
der.command, 
der.status, 
der.percent_complete
from sys.dm_exec_requests as der
where command IN ('killed/rollback',’rollback’)

 Related Posts

SQL Server - Predict SQL BACKUP DATABASE finish time with sys.dm_exec_requests

Predict ALTER INDEX REORGANIZE finish time


Author: Jack Vamvas (http://www.sqlserver-dba.com)

******** *******

Subscribe to SQLServer-DBA.com

Latest posts delivered to you daily

Delivered by FeedBurner

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer