Execute Packages in File System using SSIS Execute Package Task

The Execute Package Task allows us to call other packages present in the SQL Server or File System as a part of its execution. In this article, we are executing Packages present in the File System using SSIS Execute Package Task.

In this example, we will execute the SSIS Audit Transformation Package present in the File System using the Execute Package Task. We already explained this Audit Transformation package in our previous article.

You can see the screenshot below the [Audit Destination] table is empty. If not, Please truncate the table using T-SQL or add an Execute SQL Task.

Execute Packages in File System using SSIS Execute Package Task 0

Execute Packages in the File System using SSIS Execute Package Task Example

Drag and drop the Execute Package Task from the toolbox to the Control Flow Region.

Execute Packages in File System using SSIS Execute Package Task 1

Double-click on the Execute Package Task to configure the package. In the General tab, we can change the name and description. As of now, we changed the name to Execute Package Task from File System and left the description as it is.

Execute Packages in File System using SSIS Execute Package Task 2

Click on the package tab to configure the package location and connection string

SSIS Execute Package Task Package page

In this example, We are executing the package located in the file system. So, Please change the ReferenceType from Project Reference to External reference. Please refer to the Execute Package Task Project Reference article for calling packages inside the same project and Execute Packages in SQL Server for calling packages in SQL Server.

Execute Packages in File System using SSIS Execute Package Task 3

Here, let us select the file system as a package source

Execute Packages in File System using SSIS Execute Package Task 4

Click on the New Connection to configure or select the file from the file system.

Execute Packages in File System using SSIS Execute Package Task 5

Once you click on the <New Connection…>, it will open the File Connection Manager Editor to configure the file in the file system.

Execute Packages in File System using SSIS Execute Package Task 6

From the below screenshot, you can observe we are selecting AUDIT TRANSFORMATION from the list of SSIS Packages.

Execute Packages in File System using SSIS Execute Package Task 7

Click ok to select the file. Provide an appropriate password if the Audit Transformation package is secured with a password (In general, Yes).

Execute Packages in File System using SSIS Execute Package Task 8

Click ok to finish configuring the Execute Package Task. Let us Run the Package and see whether we successfully called the package present in the file system using the Execute Package Task or not.

Execute Packages in File System using SSIS Execute Package Task 9

From the above, you can observe that our Execute Package Task is called Audit Transformation. After this Transformation is successful, the Execute Package Task will execute.

Execute Packages in File System using SSIS Execute Package Task 10

Let us open the Management Studio and check the result.

Execute Packages in File System using SSIS Execute Package Task 11

Comments are closed.