使用master 下的sysprocesses 查询 db正在使用的spid 如
select spid from sysprocesseswhere dbid=DB_ID('DbName')
然后执行 exec(‘kill xx')
alter database set MULTI_USER