Permissions to Schedule an SSIS Package from SQL Server Agent and the File System

当尝试通过SQL Server Agent运行SQL Server Integration Services (SSIS)包时,可能会遇到“访问被拒绝”的错误。解决此问题需要为执行作业步骤的用户账户提供足够的权限。具体步骤包括:通过Component Services设置DCOM配置、编辑启动和激活权限以及访问权限,并重新启动SQL Server Integration Services服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

Problem

When trying to schedule a SQL Server Integration Services (SSIS) Package to run from SQL Server Agent, you get the following error:

“Connecting to the Integration Services service on the computer “…” failed with the following error: "Access is denied". By default only administrators have access to the Integration Services service. On Windows Vista and later the process must be running with administrative privileges in order to connect to the Integration Services service.”

Connecting to the Integration Services service on the computer failed with the following error: Access is denied.

Solution

As the error message states, the user that is running the job step does not have administration privileges to connect to the Integration Services service even in this case we are using the SQL Server Agent service account.

Follow the next steps to provide the necessary privileges to the account that is running the job step:

  1. Open the Component Services (from the Windows Start menu type “dcomcnfg”)
  2. Drill down to Console Root \ Component Services \ Computers \ My Computer \ DCOM CONFIG as shown in the next figure

Windows Component Services

  1. Locate the entry for the Microsoft SQL Server Integration Services version that you are working with and right-click on it and click on the Properties option. The respective Properties window will pop-up and choose the Security tab

Security tab of Component Services

  1. Edit the Launch and Activation Permissions option and add the user that is running the Job step allowing the Local Launchand Local Activation privileges:

Launch and Activation Permission in Component Services

  1. Edit the Access Permissions option and add the user that is running the Job step allowing the Local Access privilege:

Access Permissions in Component Services

  1. Restart the respective SQL Server Integration Services service

Note For DTSX Packages in the File System

If you are running the dtsx package from the file system and you receive the following error after executing the previous steps, then you will need to give read permissions to the folder for the same user that is running the job step.

Error for DTSX Packages in the File System

Security tab of Package Properties

Next Steps

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值