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

查看:203
本文介绍了从Sql Job运行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 Integration Services包"复选框.
  4. 在msdb数据库上创建一个角色为"SQLAgentOperatorRole","SQLAgentReaderRole","SQLAgentUserRole"和"Public"的登录名.
  5. 创建作业以运行我的SSIS包.作业所有者与在步骤4中创建的登录名绑定.在我的作业的步骤属性下,将类型设置为"Sql Server Integration Services程序包",并将运行方式"选项设置为在步骤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?

谢谢您的时间, 比利

推荐答案

弄清楚了这一点.通过将相同的AD帐户设置为与sql服务器上的登录名相同的帐户,并具有与上述第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.

希望这对某人有帮助.

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

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