SELECT sqltext.text,
req.session_id,
req.status,
req.command,
req.cpu_time,
req.total_elapsed_time
FROM sys.dm_exec_requests req
CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS sqltext
Wednesday, January 13, 2010
Find current queries
at 9:39 PM
Labels: SQL Server, SQL Server 2005, SQL Server Tip
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment