1 --进程执行状态 2 SELECT 3 der.[session_id],der.[blocking_session_id], 4 sp.lastwaittype,sp.hostname,sp.program_name,sp.loginame, 5 der.[start_time] AS '开始时间', 6 der.[status] AS '状态', 7 dest.[text] AS 'sql语句', 8 DB_NAME(der.[database_id]) AS '数据库名', 9 der