Using the DTExec command-line utility to execute an SSIS package
In this recipe, you are going to execute an SSIS package using the DTExec command-line utility. This utility supports not only packages deployed to the SSISDB catalog, but also packages managed by the legacy SSIS Service (stored in the msdb
system database, or in the managed SSIS package store), and even packages stored in the filesystem.
How to do it...
- Using Windows Explorer, locate the
Chapter06_Execution_DTExec.bat
command file in theC:\SSIS2016Cookbook\Chapter06\Scripts\
folder. - Right-click the file, and select
Edit
from the shortcut menu to open the file in Notepad. - Inspect the DTExec command line:
DTExec /Server localhost /ISServer "\SSISDB\CustomLogging\CustomLogging\CustomLogging.dtsx" /Env 1 /Par $ServerOption::LOGGING_LEVEL(Int32);1
The /Server
argument provides the name of the SSIS Server, the /ISServer
argument instructs the utility to load the SSIS package from the SSISDB Catalog (the complete path to the package...