经常检查哪个进程运行什么脚本
所以以下脚本比较实用
--显示进程执行的脚本use masterdeclare @spid int;declare @sql_handle binary(20);set @spid = 112SELECT @sql_handle = sql_handleFROM sysprocesses As A with (nolock)where spid = @spidselect textfrom ::fn_get_sql(@sql_handle)
经常检查哪个进程运行什么脚本
所以以下脚本比较实用
--显示进程执行的脚本use masterdeclare @spid int;declare @sql_handle binary(20);set @spid = 112SELECT @sql_handle = sql_handleFROM sysprocesses As A with (nolock)where spid = @spidselect textfrom ::fn_get_sql(@sql_handle)