How can I execute an SQL Task inside one Script Task in SSIS, both defined in the same package?

Ambros 0 Reputation points
2023-05-16T11:30:09.44+00:00

Hello.

I need to execute one SQL Task defined in the same SSIS dtsx package as a Script Task is defined.

I don´t know if it´s possible to code inside the SSIS Script Task the execution of other tasks defined in its own dtsx package.

Thanks in advance for your help

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

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 Reputation points
    2023-05-17T01:54:11.45+00:00

    Hi @Ambros,

    Not clear about your requirement.

    If you only want to run sql command in Script Task, you may take a reference here.

    If you want to execute an SQL Task and Script Task together in one package, you may use the two tasks in your package.

    User's image

    If i misunderstand your issue, please incorrect me.

    Regards,

    Zoe Hui


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


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.