SqlServer 查看客户端正在运行的SQL语句
SELECT AAA.host_name,BBB.* from Sys.dm_exec_Sessions AS AAA,( SELECT [session_id] , [request_id], [cpu_time], [start_time] AS '开始时间', [status] AS '状态', [command] AS '命令', dest.[text] AS 'sql语句',
网事随记
SELECT AAA.host_name,BBB.* from Sys.dm_exec_Sessions AS AAA,( SELECT [session_id] , [request_id], [cpu_time], [start_time] AS '开始时间', [status] AS '状态', [command] AS '命令', dest.[text] AS 'sql语句',
V