.查找目前SQL Server所执行的SQL语法,并展示资源情况: SELECT s2.dbid , DB_NAME(s2.dbid) AS [数据库名] , --s1.sql_handle , ( , ( ( THEN ( LEN(CONVERT(NVARCHAR(MAX), s2.text)) ) ELSE statement_end_offset ) ) AS [语句] , execution_count AS [执行次数] , last_execution_time AS [上次开始执行