Sunday, 17 May 2015

SQL SERVER – Find Currently Running Query – T-SQL

SELECT sqltext.TEXT,req.session_id,req.status,req.command,req.cpu_time,req.total_elapsed_timeFROM sys.dm_exec_requests reqCROSS APPLY sys.dm_exec_sql_text(sql_handleAS sqltext

No comments:

Post a Comment