• subscribe
March 17, 2003 12:00 AM

Getting Transaction Information from DBCC OPENTRAN

SQL Server Pro
InstantDoc ID #38041

How can I identify the longest running transaction in my database? For example, I want to find out which process has held log space in a database for the longest amount of time.

The DBCC OPENTRAN command gives you the information you need by displaying information about the oldest active transaction and the oldest distributed and nondistributed replicated transactions within the specified database. The command displays results only if an active transaction exists or if the database contains replication information. The command simply displays an informational message when no active transactions exist. I've found that glancing through all the commands that SQL Server Books Online (BOL) documents is a few hours well spent. You might not memorize all the commands, but you'll likely recall the appropriate ones when you run across a particular problem.



ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...