https://www.cnblogs.com/xingyunqiu/p/10336938.html SQL server已经设置为单用户模式,Sql server还原失败数据库正在使用,无法获得对数据库的独占访问权 查询数据库的ID Select * from master..sysdatabases where name = '工装管理' 根据数据库ID查询占用的spid Select * from sys.sysprocesses a where a.dbid = '26' kill sp…