use master go alter database database_name set single_user with rollback immediate --将数据库回滚到原始配置状态 go drop database database_name --删除数据库 go