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 are going to execute SSIS Audit Transformation Package present in the File System using Execute Package Task. We already explained this Audit Transformation package in our previous article

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

Execute Packages in File System using SSIS Execute Package Task 0

Execute Packages in 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 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. If the Audit Transformation package is secured with a password (In general, Yes), provide an appropriate password.

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

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.

Comments are closed.