我正在从本地“经典”SQL Server 数据库迁移到 Azure SQL Server 数据库,不幸的是,我用来执行的过程之一不适用于 Azure SQL Server 数据库:
EXEC sp_removedbreplication "Database Name"
使用 SQL ADMIN 用户出现以下错误:
Only members of the sysadmin fixed server role can perform this operation.
但是,我尝试通过 proc 授予“sysadmin”角色,但没有成功。
EXEC sp_addrolemember 'sysadmin', 'sqladmin';
Cannot alter the role 'sysadmin', because it does not exist or you do not have permission.
我无法通过 SQL SERVER Management studio 找到任何服务器角色目录
最佳答案
如果您查看 sp_removedbreplication 的文档您将看到,只有盒装 SQL Server 版本和 Azure SQL 托管实例支持该存储过程,而不是 Azure SQL 数据库。
您可以在 this table 中看到Azure SQL 数据库支持哪些类型的复制。
关于sql-server - 只有 sysadmin 固定服务器角色的成员才能执行此操作。 Azure SQL Server 数据库与 SQL Server 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72907850/