执行以下操作可使您的工作变得容易:以SA帐户打开SQL Server,单击“创建新查询”和“过去的查询”,然后单击“执行”!完成。
alter authorization on schema::[db_datareader] to [dbo]
alter authorization on schema::[db_datareader] to [db_datareader]
alter authorization on schema::[db_datawriter] to [dbo]
alter authorization on schema::[db_datawriter] to [db_datawriter]
alter authorization on schema::[db_securityadmin] to [dbo]
alter authorization on schema::[db_securityadmin] to [db_securityadmin]
alter authorization on schema::[db_accessadmin] to [dbo]
alter authorization on schema::[db_accessadmin] to [db_accessadmin]
alter authorization on schema::[db_backupoperator] to [dbo]
alter authorization on schema::[db_backupoperator] to [db_backupoperator]
alter authorization on schema::[db_ddladmin] to [dbo]
alter authorization on schema::[db_ddladmin] to [db_ddladmin]
alter authorization on schema::[db_owner] to [dbo]
alter authorization on schema::[db_owner] to [db_owner]
alter authorization
将安全对象(在这种情况下为架构)的所有权更改为给定的主体。因此,您要么希望dbo拥有这些模式(就像它们在我所检查的数据库中一样),要么您想要它们自己拥有这些模式。选择是相互排斥的(据我所知)。