Powershell to run SSIS package using dtexec

Sivasankar Rebba 51 Reputation points
2023-03-08T22:21:25.68+00:00

Hi,

I need to develop powershell script to run SSISpackage using dtexec

below is my code.

$dtexecLocation="D:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\DTExec.exe"

$dtexecLocation /FILE "D:\SSIS\abc.dtsx" /CONFIGFILE "D:\SSIS\abc.config"

I am getting Unexpected token 'FILE' in expression or statement.

Thanks,

Siva.

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

Accepted answer
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-03-09T02:33:36.6733333+00:00

    Hi @Sivasankar Rebba,

    Why not directly use dtexec to run the package?

    User's image

    Such as:

    DTExec /FILE "D:\SSIS\abc.dtsx" /CONFIGFILE "D:\SSIS\abc.config"

    Regards,

    Zoe Hui


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

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.