如何将任何链接的服务器更改为角色?

时间:2010-02-16 14:40:28

标签: sql-server-2005 sql-server-2008

我们的数据库有一个命名数据库角色。我们的服务帐户是此角色的成员。这使我们的数据库创建脚本更简单。

但是,我希望这个角色能够创建链接服务器。

如果我尝试以下方法:

USE OurDatabase
GO

GRANT ALTER ANY LINKED SERVER TO OurRole
GO

...它以Permissions at the server scope can only be granted when the current database is master失败。

如果我尝试相反的话:

USE [master]
GO

GRANT ALTER ANY LINKED SERVER TO OurRole
GO

...然后以Cannot find the login 'OurRole', because it does not exist or you do not have permission.

失败

如何向SQL Server中的数据库角色授予链接服务器权限?

1 个答案:

答案 0 :(得分:2)

documentation表示无法向数据库角色授予服务器权限(与授予数据库权限的documentation相比)。

相关问题