✅ 操作成功!

SQLServer 数据库无法重命名

发布时间:2023-06-13 作者:admin 来源:文学

SQLServer 数据库无法重命名

SQLServer 数据库无法重命名

情景:

1.执行

alter database channel_management

modify name = testtt

时,报错:The database could not be exclusively locked to perform the operation.(无法以独占方式锁定数据库以执行该操作。)

2.右键---重命名

报错:

原因:数据库的文件被占用了。

解决方法:首先需要从开始菜单中找到【SQL Server 配置管理器】,然后打开

然后会看到【SQL Server(MSSQLServer)】正处于运行的状态

右击它然后【重新启动】任务进程

👁️ 阅读量:0