Home > Database > Mysql Tutorial > body text

如何强制删除或恢复SQLServer正在使用的数据库

WBOY
Release: 2016-06-07 17:57:00
Original
1162 people have browsed it

如何强制删除或恢复SQLServer正在使用的数据库

通常情况睛,SQLServer2000正在使用的数据库(有数据库连接),是不能删除或被恢复的,可以将数据库设置为单用户模式,即可删除:



ALTER DATABASE IpaddrDB SET SINGLE_USER with ROLLBACK IMMEDIATE
GO
DROP DATABASE IpaddrDB

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template