Executing an SSIS Task from a SQL Authentication Login

ajay mahato 21 Reputation points
2021-05-19T11:53:14.553+00:00

I am trying to execute a SSIS package deployed in the SSISDB. while using windows authentication the package executes without any problem but when I try executing it with a SQL server authentication user I get the following error.
"The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication."

Here is my code to execute to package.

declare @parameterValue nvarchar(200)
set @parameterValue='D:\DriverImpact\'
declare @output_execution_id bigint
declare @execution_id bigint
exec ssisdb.catalog.create_execution
@display _name = 'DriverImpact'
,@Shayna Webb _name = 'Integration Services Project2'
,@package_name = 'Package1.dtsx'
,@execution_id = @execution_id output

EXEC [SSISDB].[catalog].[set_execution_parameter_value]
@object_type= 20
,@execution_id = @execution_id
, @parameter_name = N'MainFolder'
, @parameter_value = @parameterValue;

exec ssisdb.catalog.start_execution @execution_id
set @output_execution_id = @execution_id
select @output_execution_id as 'output'

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
Developer technologies Transact-SQL
0 comments No comments
{count} votes

Accepted answer
  1. ZoeHui-MSFT 41,491 Reputation points
    2021-05-20T02:56:36.29+00:00

    Hi @ajay mahato ,

    You cannot use a SQL Account to run an SSIS package in the Integration Services Catalog. There is logic within the CLR methods that are used to run the SSIS packages that reject non-windows authentication.

    If you don't want to use windows authentication, you may refer below for details.

    https://dba.stackexchange.com/questions/198914/the-operation-cannot-be-started-by-an-account-that-uses-sql-server-authenticatio

    Regards,

    Zoe


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Hot issues October

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Tom Phillips 17,771 Reputation points
    2021-05-19T15:33:04.407+00:00

    The error is clear. What is your question?

    The simplest way to avoid this issue is to use a SQL Agent job run the SSIS package. Agent runs as Windows auth.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.