Executing an SSIS package stored in SSISDB

In this recipe, we execute a package stored in SSISDB.

Getting ready

In this recipe, we execute the package that comes with the customer package project that was deployed in the Deploying an ISPAC file to SSISDB recipe. Alternatively, replace the variables for folder, project, and package names.

How to do it...

Let's explore the code required to execute a package in SSISDB:

  1. Open PowerShell ISE as an administrator.
  2. Import the SQLPS module as follows:
    #import SQL Server module
    Import-Module SQLPS -DisableNameChecking
  3. Load the IntegrationServices assembly as follows:
    Add-Type -AssemblyName "Microsoft.SqlServer.Management.IntegrationServices, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
  4. Add ...

Get SQL Server 2014 with PowerShell v5 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.