Cannot drop database "databasename" because it is currently in use.
2012-07-02 16:35
393 查看
有时候你在操作数据库的时候数据库出问题了,而你又要把数据库drop时就出问题了:Cannot drop database "databasename" because it is currently in use.
这时你只要按照以下方法做就可以了:
use master
go
alter database databasename set single_user with rollback immediate
go
drop database databasename
go
这时你只要按照以下方法做就可以了:
use master
go
alter database databasename set single_user with rollback immediate
go
drop database databasename
go
相关文章推荐
- 删除数据库时提示数据库正在被使用,无法删除(Cannot drop database databasename because it is currently in use)的问题
- 删除数据库时提示数据库正在被使用,无法删除(Cannot drop database databasename because it is currently in use)。
- 删除数据库时提示数据库正在被使用,无法删除(Cannot drop database databasename because it is currently in use)的问题
- 【C# - Entity Framework 】Cannot drop database "MvcQlog" because it is currently in use.
- ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题
- Cannot open "Name.xcodeproj" because it is already open in another workspace.
- FMDB多线程下"is currently in use" 或者 "database is locked" 已解决!
- Error 3724:Cannot drop the table 'object_name' because it is being used for replication.
- APP-SQLAP-10380:You cannot select this payment document because it is in use by another payment batch
- Cannot drop the database ‘XXX’ because it is being used for replication.
- ios FMDB多线程"is currently in use", "database is locked"问题的解决
- Cannot drop the database 'databasename' because it is currently in use
- Cannot drop the database ‘XXX’ because it is being used for replication.
- mysql -- error code [1442]; Can't update table 'table_name' in stored function/trigger because it is already used by statement w
- Cannot drop the database XXX because it is being used for replication
- APP-SQLAP-10380: You cannot select this payment document because it is in use by another payment
- 【Vegas原创】ORA-01103:"database name *** in control file is not @@@" 解决
- FMDB多线程下"is currently in use" 或者 "database is locked" 问题
- 【Vegas原创】ORA-01103:"database name *** in control file is not @@@" 解决
- FMDB多线程下"is currently in use" 或者 "database is locked" 问题