---------------------------------进程情况1----------------------- --得到SPID if object_id('tempdb..#info') is not null drop table #info select distinct spid ,hostname ,db_name(dbid) as dbname ,net_address,loginame,rtrim(program_name) program_name ,cmd , th…