Reputation: 2628
I'm trying to capture the values of about 15 variables within my sysssislog when my package executes.
I have set all the variables to true for "Raise event when variable value changes" and I understand I have to put some sort of object/code into the Event handler but I'm totally unsure as to what this should look like for the 15 variables.
Can anyone offer some examples please?
Upvotes: 2
Views: 582
Reputation: 4790
After the RaiseChangedEvent
property is set to true on the variable the OnVariableValueChanged
event will need be selected for logging to SYSSSISLOG
. This can be done by right-clicking the package and selecting Logging then going to the Details tab and checking the check-box for the OnVariableValueChanged
event. After this click the Advanced button and check the box for each element that will be logged, for instance Computer
, SourceName
, etc. To see the actual value that the variable was changed to query the SSISDB.CATALOG.EVENT_MESSAGES
DMV following package execution. The MESSAGE
column will show the value that the variable was set as during package execution.
Upvotes: 3