sp_who2를 원하는 db만 확인하고 싶은데 보기가 힘들어서 만들었다.create table #sp_who2_table ( spid int, status varchar(255), login varchar(255), hostname varchar(255), blkby varchar(255), dbname varchar(255), command varchar(255), cputime int, diskio int, lastbatch varchar(255), programname varchar(255), spid2 int, requestid int)insert into #sp_who2_table exec sp_who2select *from #sp_who2_tablewhere dbname ..