简体   繁体   English

SQL 服务器代理作业不执行 SSIS package 权限错误

[英]SQL Server Agent Job doesn't execute SSIS package Permission Error

I am trying to run a SSIS Package (Uploading a file) to my SQL Server Database.我正在尝试将 SSIS Package(上传文件)运行到我的 SQL 服务器数据库。 After creating the SSIS Package in SSIS it saves to a folder on SSMS.在 SSIS 中创建 SSIS Package 后,它会保存到 SSMS 上的文件夹中。 I have set it up like the below:我已将其设置如下:

在此处输入图像描述

I basically have all admin rights on this instance.我基本上拥有这个实例的所有管理员权限。 When I try to run the package I am hit with a fail saying:当我尝试运行 package 时,我遇到了一个失败的说法:

04/14/2021 10:05:27,Testing SSIS,Error,1,XXXX\INSTANCE04,Testing SSIS,Upload,,Non-SysAdmins have been denied permission to run ANALYSISCOMMAND job steps without a proxy account. 2021 年 4 月 14 日 10:05:27,测试 SSIS,错误,1,XXXX\INSTANCE04,测试 SSIS,上传,,非系统管理员已被拒绝运行 ANALYSISCOMMAND 作业步骤没有代理帐户的权限。 The step failed步骤失败

and this error sometimes too:有时也会出现这个错误:

04/14/2021 10:05:27,Testing SSIS,Error,1,XXXX\INSTANCE04,Testing SSIS,Upload,,Non-SysAdmins have been denied permission to run DTS Excecution jobs steps without a proxy account. 2021 年 4 月 14 日 10:05:27,测试 SSIS,错误,1,XXXX\INSTANCE04,测试 SSIS,上传,,非系统管理员已被拒绝运行 DTS 执行作业步骤没有代理帐户的权限。 The step failed步骤失败

I plan to run multiple packages in this job later on If someone could help I would be very grateful!我计划稍后在这项工作中运行多个包如果有人可以提供帮助,我将非常感激!

It looks like you are processing an analysis services model or cube.看起来您正在处理分析服务 model 或多维数据集。 To resolve this, try the following:要解决此问题,请尝试以下操作:

1- Add a credential (stores a windows account credentials in SQL Server) 1-添加凭据(在 SQL 服务器中存储 windows 帐户凭据)

2- Add a proxy and give it permission to process and SSAS Command and run an ssis package 2-添加代理并授予其处理和 SSAS 命令的权限并运行 ssis package

3- Grant permissions to the account used in the credential to process the SSAS model or cube 3- 向凭证中使用的帐户授予权限以处理 SSAS model 或多维数据集

4- Configure the job to run under the new proxy account 4-将作业配置为在新代理帐户下运行

USE [master];
GO

CREATE CREDENTIAL [<domain\user>]
WITH
    IDENTITY = N'<domain\user>'
  , SECRET = N'<password>';
GO

USE [msdb];
GO

EXEC dbo.sp_add_proxy
    @proxy_name = N'SSAS_Processor'
  , @credential_name = N'<domain\user>'
  , @enabled = 1;
GO

EXEC dbo.sp_grant_proxy_to_subsystem
    @proxy_name = N'SSAS_Processor'
  , @subsystem_id = 10; --ssas command
GO

EXEC dbo.sp_grant_proxy_to_subsystem
    @proxy_name = N'proxy'
  , @subsystem_id = 11; --ssis package
GO

Configure job:配置作业: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL Server作业代理不执行SSIS包 - SQL Server Job Agent don't execute SSIS Package 使用SSIS包执行SQL Server作业 - execute a SQL Server Job using SSIS package SSIS:执行 SQL Server 代理作业任务以异步或同步方式运行 - SSIS : Execute SQL Server Agent Job Task run Asychronously or Synchronously SSIS包在服务器上运行,但不作为预定作业运行(SQL代理) - SSIS Package runs on the server but not as a scheduled job (SQL Agent) SSIS DTSX package 在 SQL 服务器代理作业中丢失数据 - SSIS DTSX package losing data in a SQL Server Agent job ssis 在 sql 服务器代理中工作 - ssis job in sql server agent 根据 SQL 代理作业当前是否正在运行,确定是否在其控制流中执行 SSIS package - Determine whether to execute SSIS package inside its Control Flow based on whether an SQL Agent job is currently running 如何使用SQL Server代理作业在未安装excel的服务器上运行具有excel源的SSIS包 - How to run an SSIS package having excel source on a server where excel is not installed using SQL Server Agent Job SQL Server代理作业以运行SSIS包 - SQL Server Agent Jobs to Run SSIS Package 如何在我的 SQL 服务器代理作业中创建一个步骤,它将运行我的 SSIS package? - How do I create a step in my SQL Server Agent Job which will run my SSIS package?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM