WhereScape White Paper
www.wherescape.com
- 3 -
The DTEXEC utility is installed with the
“Integration Service Instance” option while
installing SQL Server.
The DTEXEC command prompt utility is used to
congure and execute SQL Server Integration
Services packages. The DTEXEC utility provides
access to the entire package conguration
and execution features, such as parameters,
connections, properties, variables, logging, and
progress indicators.
Syntax
DTEXEC /option [value] [/option [value]]...
Syntax Rules
All options must start with a slash (/) or a
minus sign (-). The options that are shown here
start with a slash (/), but the minus sign (-) can
be substituted.
An argument must be enclosed in quotation
marks if it contains a space. If the argument is
not enclosed in quotation marks, the argument
cannot contain white space.
Doubled quotation marks within quoted strings
represent escaped single quotation marks.
Options and arguments are not case-sensitive,
except for passwords.
Read more about DTEXEC options here:
http://msdn.microsoft.com/en-us/library/
hh231187.aspx
RED/DTEXEC Relevant Parameters
/FILE “packageFilePath” - specify the location of the
package
/REPORTING EW - display which messages to report;
Errors (E) and Warnings (W) for the error log (if this
command isn’t specied the default is EWP – Errors,
Warnings & Progress)
/CONN “connectionManager”;”connectionString” -
Optional: used to change the connection string in the
package
/SET \package.variables[“variable”].value;”value” -
Optional: used to set parameters in the package
/SET \package.connections[“connectionManager”].
properties[connectionstring];”connectionString”-
used to set the connection string if it is
parameterised.
NOTE: Each line of the host script must be less than
255 characters long otherwise when it is processed by
RED it will cut off the end and throw an error.
MSSQL 2012 SSIS Catalog
With the implementation of the SSIS Catalog it
is now possible to invoke a package with TSQL,
which from a RED perspective is much simpler
and easier to integrate and also manage the SSIS
packages cleanly. At this point we need to cover off
some specics as to the mechanisms provided to
do so.
Within the SSIS Catalog there are a number of
stored procedures and views by which we can
execute a package and monitor its progress and
state. Basically the process follows 4 steps:
1. Create a package execution “container”
2. Set the required package parameter values
& environments
3. Execute the package itself
4. Monitor progress and state via Catalog
views
A couple of important things to note:
By creating the package execution you obtain
an execution id that is used by the following
processes to identify the particular execution
instance of the package
If the package itself fails then the execute
package procedure will not necessarily return
an error, so we have to check the SSIS Catalog