SQL代理作业-“运行方式”下拉列表为空 [英] SQL Agent Job - "Run As" drop down list is empty

查看:134
本文介绍了SQL代理作业-“运行方式”下拉列表为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试设置SQL Agent Job时,为什么运行方式下拉列表始终为空?我正在尝试设置一些SQL代理作业以使用代理帐户运行。我是SQLAgentUserRole,SQLAgentReaderRole和SQLAgentOperatorRole的成员。当我尝试向该作业添加步骤时,选择 SQL Integration Services程序包,并且运行方式下拉列表为空。

Why is the "Run As" drop down list is always empty when I try to set up a SQL Agent Job? I am trying to set up some SQL Agent Jobs to run using a proxy account. I am a member of the SQLAgentUserRole, SQLAgentReaderRole, and SQLAgentOperatorRole. When I try to add a step to to the job, I select SQL Integration Services Package and the Run As drop down list is empty.

系统管理员的任何人都可以查看代理。我是否应该可以将代理用作SQLAgentUserRole,SQLAgentReaderRole和SQLAgentOperatorRole的成员?我在这里错过了什么?

Anyone who is a sysadmin can view the proxy. Shouldn't I be able to use the proxy as a member of SQLAgentUserRole, SQLAgentReaderRole, and SQLAgentOperatorRole? What am I missing here?

(代理帐户对子系统是活动的:SQL Integration Service软件包,这是SQL Server 2008 R2)

(The proxy account is active to the subsystem: SQL Integration Service Packages and this is SQL Server 2008 R2)

编辑-

MSDN :这些数据库角色(SQLAgentUserRole,SQLAgentReaderRole和SQLAgentOperatorRole)的成员可以查看和执行其拥有的作业,并创建以现有代理帐户运行的作业步骤。另一篇有关固定服务器角色的文章提到可以授予代理访问权限,但没有提及如何执行此操作: MSDN

MSDN: "Members of these database roles (SQLAgentUserRole, SQLAgentReaderRole, and SQLAgentOperatorRole) can view and execute jobs that they own, and create job steps that run as an existing proxy account." And this other article on fixed server roles mentions that access can be granted to proxies, but it does not mention how to do it: MSDN.

推荐答案

我找到了答案。不是sysadmin的用户必须有权访问为其角色或用户名明确授予的代理帐户:

I found the answer to this. Users who are not sysadmin have to have access to the proxy account explicitly granted to their role or username:

为非sysadmin授予对代理帐户的访问权限

To grant access to proxy accounts for non-sysadmins


  1. 在对象资源管理器中,展开服务器。

  2. 展开SQL Server代理。

  3. 展开代理,展开代理的子系统节点,右键单击要修改的代理,然后单击属性。

在常规页面上,您可以更改代理帐户名称,凭据或其使用的子系统。在主体页面上,可以添加或删除登录名或角色,以授予或删除对代理帐户的访问权限。

On the General page, you can change the proxy account name, credential, or the subsystem it uses. On the Principals page, you can add or remove logins or roles to grant or remove access to the proxy account.

http://msdn.microsoft.com/en-us/library/ms187890(v = sql.100).aspx

这篇关于SQL代理作业-“运行方式”下拉列表为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆