You can send messages directly to the Job History Log. It will show up as follows in the Job history log:
For Script Tasks use the following code:
Dts.Events.FireWarning(0, "Message header", "Message Body", String.Empty, 0)
For Script Component use the following code:
Dim myMetadata As IDTSComponentMetaData100
myMetadata = Me.ComponentMetaData
myMetadata.FireWarning(0, "Message Header", "Message Body", "", 0)
You will need to enable "Include step output in history (see below)
You will need to enable Warning Messages for the SSIS package (see below)
Enabling "Include step output in history":
Enabling Warning Messages:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With