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