从 Sql 作业运行 SSIS 包的权限问题 [英] Permissions Issue running SSIS package from Sql Job

查看:29
本文介绍了从 Sql 作业运行 SSIS 包的权限问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个部署到 Sql Server 2008 的 SSIS 包.这个包在 BIDS 以及从存储包目录中的服务器运行良好.一旦我将此包绑定到 sql 作业,我就开始看到从 SSIS 包中访问特定文件的权限问题.因此,通过我的研究,我发现使用代理帐户可能是解决我问题的方法.这些是我迄今为止采取的步骤:

I have an SSIS package deployed to Sql Server 2008. This package runs fine in BIDS as well as from the server within the stored packages directory. As soon as i tie this package to a sql job i start to see permission issues accessing a specific file from within the SSIS package. So through my research i see that using a proxy account may be the solution to my problems. These are the steps i have taken so far:

  1. 设置 Active Directory 用户帐户
  2. 在安全条件下 - 凭据 - 在步骤 1 中创建与帐户绑定的凭据.
  3. 在 Sql Server 代理下 - 代理 - SSIS 包执行 - 创建与上述凭据相关联的代理并选中SQL Server 集成服务包"复选框.
  4. 在 msdb 数据库上创建了一个具有SQLAgentOperatorRole"、SQLAgentReaderRole"、SQLAgentUserRole"和Public"角色的登录名.
  5. 创建作业来运行我的 SSIS 包.作业所有者与步骤 4 中创建的登录名相关联.在我的作业的步骤属性下,我将类型设置为Sql Server 集成服务包",并将运行方式设置为我在步骤 3 中创建的代理帐户的选项,并将其指向我的 SSIS包.
  6. 从第 1 步开始完全控制帐户访问 SSIS 包指向的文件夹/文件.

当我开始工作时,我不断地出错:

When i kick the job off i continually get and error:

以用户身份执行:第 1 步中的帐户"- 无法加载包.用户登录失败:步骤 1 中的帐户".无法加载包.

Executed as user: "Account from step 1" - Could not load package. Login Failed for user: "Account from step 1". The package could not be loaded.

为了完成这项任务,我可能会遗漏哪一步?

What step could i be missing to accomplish this task?

感谢您的时间,比利

推荐答案

想出了这个.解决方法是在sql sever上设置相同的AD账号作为登录,登录角色与上述步骤4相同.

Figured this one out. Resolved by setting up the same AD account as a login on sql sever with the same login roles as those above in step 4.

希望这对某人有所帮助.

Hope this helps someone.

这篇关于从 Sql 作业运行 SSIS 包的权限问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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