由于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];
所以需要进行如下处理
USE master
GO
ALTER AUTHORIZATION ON DATABASE::[database_name] TO [sa];
