新浪博客

关于SQLDB没有DBO的权限时

2024-01-19 23:55阅读:
由于db通过restore 回到server的时候,有时访问的时候没有DBO的权限时, 报错内容:Cannot execute as the database principal because the principal “dbo” does not exist, this type of principal cannot be impersonated, or you do not have permission. (15517);
所以需要进行如下处理
USE master
GO
ALTER AUTHORIZATION ON DATABASE::[database_name] TO [sa];




我的更多文章

下载客户端阅读体验更佳

APP专享