go
alter database [DBName] set single_user with rollback immediate
go
drop database [DBName]
go
右键stop 数据库
restore 出错时,勾选override
go
alter database [DBName] set single_user with rollback immediate
go
drop database [DBName]
go
右键stop 数据库
restore 出错时,勾选override