欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

because the principal dbo does not exist 问题解决方法

发布时间:2023/12/31 51 豆豆
生活随笔 收集整理的这篇文章主要介绍了 because the principal dbo does not exist 问题解决方法 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

在做复制时,要删除一个发布,遇到错误:

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.

解决方法:

这个库是我直接从一个2K5备份文件上恢复到2K8实例的,没有做其它设定。

因为我是在sa登录遇到此错误

USE master GO EXEC sys.sp_dbcmptlevel @dbname = N'MyDB',@new_cmptlevel = 90 GO USE MyDB GO EXEC sys.sp_changedbowner @loginame = sa,@map = 'dbowner'  GO


转载于:https://blog.51cto.com/joetang/1606789

总结

以上是生活随笔为你收集整理的because the principal dbo does not exist 问题解决方法的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。