select program_name,spid,dbid,login_time,last_batch,hostname,nt_username,net_library,hostprocess,db_name(dbid)
from sys.[sysprocesses] where spid>50 -- and loginame<>'fxdbUser'
and db_name(dbid)<>''
kill spid
select program_name,spid,dbid,login_time,last_batch,hostname,nt_username,net_library,hostprocess,db_name(dbid)
from sys.[sysprocesses] where spid>50 -- and loginame<>'fxdbUser'
and db_name(dbid)<>''
kill spid