The Execute Package Task allows us to call other packages present in SQL Server or File System as a part of its execution. In this article we are going to show you, 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 about this Audit Transformation package in our previous article so, Please refer it for understanding the package,
You can see from below screenshot, [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 Example
Drag and drop the Execute Package Task from toolbox to Control Flow Region.
Double click on the Execute Package Task to configure the package. In the General Tab we can change the name and provide useful description. As of now, we changes the Name as Execute Package Task from File System and left the description as it is.
Click on the package tab to configure the package location and connection string
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 SSIS Execute Package Task Project Reference article for calling packages inside the same project and Execute Packages in SQL Server using SSIS Execute Package Task for calling packages in SQL Server.
Here let us select the file system as package source
Click on the New Connection to configure or select the file from the file system.
Once you click on the <New Connection…>, it will open the File Connection Manager Editor to configure the file in the file system.
From the below screenshot you can observe, we are selecting AUDIT TRANSFORMATION from the list of SSIS Packages.
Click ok to select the file. If the Audit Transformation package is secured with password (In general Yes) then provide appropriate password.
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 Execute Package Task or not.
From the above you can observe that, our Execute Package Task is calling Audit Transformation. After this Transformation is successful then Execute Package Task will execute.
Let us open the SQL Server Management Studio and check the result.
Thank You for Visiting Our Blog