catalog.set_execution_parameter_value (SSISDB Database)
Sets the value of a parameter for an instance of execution in the Integration Services catalog.
A parameter value cannot be changed after an instance of execution has started.
To find out the parameter values that were used for a given execution, query the catalog.execution_parameter_values view.
To specify the scope of information that is logged during a package execution, set parameter_name to LOGGING_LEVEL and set parameter_value to one of the following values.
Set the object_type parameter to 50.
|
Value |
Description |
|---|---|
|
0 |
None Logging is turned off. Only the package execution status is logged. |
|
1 |
Basic All events are logged, except custom and diagnostic events. This is the default value. |
|
2 |
Performance Only performance statistics, and OnError and OnWarning events, are logged. |
|
3 |
Verbose All events are logged, including custom and diagnostic events. |
To specify that the Integration Services server generates dump files when any error occurs during a package execution, set the following parameter values for an execution instance that hasn’t run.
|
Parameter |
Value |
|---|---|
|
execution_id |
The unique identifier for the instance of execution |
|
object_type |
50 |
|
parameter_name |
‘DUMP_ON_ERROR |
|
parameter_value |
1 |
To specify that the Integration Services server generates dump files when events occur during a package execution, set the following parameter values for an execution instance that hasn’t run.
|
Parameter |
Value |
|---|---|
|
execution_id |
The unique identifier for the instance of execution |
|
object_type |
50 |
|
parameter_name |
‘DUMP_ON_EVENT |
|
parameter_value |
1 |
To specify the events during package execution that cause the Integration Services server to generate dump files, set the following parameter values for an execution instance that hasn’t run. Separate multiple event codes using a semi-colon.
|
Parameter |
Value |
|---|---|
|
execution_id |
The unique identifier for the instance of execution |
|
object_type |
50 |
|
parameter_name |
DUMP_EVENT_CODE |
|
parameter_value |
One or more event codes |
The following example specifies that the Integration Services server generates dump files when any error occurs during a package execution.
exec catalog.create_execution 'TR2','Recurring ETL', 'Dim_DCVendor.dtsx',NULL, 0,@execution_id out exec catalog.set_execution_parameter_value @execution_id, 50, 'DUMP_ON_ERROR',1
The following example specifies that the Integration Services server generates dump files when events occur during a package execution, and specifies the event that causes the server to generate the files.
exec catalog.create_execution 'TR2','Recurring ETL', 'Dim_DCVendor.dtsx',NULL, 0,@execution_id out exec catalog.set_execution_parameter_value @execution_id, 50, 'DUMP_ON_EVENT',1 declare @event_code nvarchar(50) set @event_code = '0xC020801C' exec catalog.set_execution_parameter_value @execution_id, 50, 'DUMP_EVENT_CODE', @event_code
