--一、查找数据的dbid Select * from master..sysdatabases where name = 'testeq' --二、查找对应dbid的进程ID Select * from sys.sysprocesses a where a.dbid = '32' --三、执行杀进程spid kill 52