I have a log stored procedure that was initially designed having no input parameters related to SSIS package system variables. Now I want to use it to fetch its component ID if executed via package (i.e., its executing SQL task component GUID).
Since the stored procedure is used almost everywhere across the project (even outside of MSBI scope), neither changing stored procedure parameter setting, making any hard-code mapping relationships, nor transfer all execute SQL tasks to script tasks and use Dts.Events.Fireinformation sounds easy.
However, SSIS built-in logging feature has been well enabled in project. How can I achieve this?
(Ref: make the stored procedure RAISERROR('message', 10, 1) or PRINT 1 doesn't trigger ONINFORMATION event in package and therefore cannot use dbo.sysssislog to do this).