I have several SSIS integration packages registering in a database. They all write to the sysssislog table.
I want the stored procedure to be able to return the success of the last run of the selected package.
How to define a package in sysssislog? The executable file field seems to work, but it looks like it changes values on most runs of the same package (sometimes it remains unchanged). Is there any way to find out which package the journal entry comes from?
The sysssislog structure for reference:
CREATE TABLE [dbo].[sysssislog](
[id] [int] IDENTITY(1,1) NOT NULL,
[event] [sysname] NOT NULL,
[computer] [nvarchar](128) NOT NULL,
[operator] [nvarchar](128) NOT NULL,
[source] [nvarchar](1024) NOT NULL,
[sourceid] [uniqueidentifier] NOT NULL,
[executionid] [uniqueidentifier] NOT NULL,
[starttime] [datetime] NOT NULL,
[endtime] [datetime] NOT NULL,
[datacode] [int] NOT NULL,
[databytes] [image] NULL,
[message] [nvarchar](2048) NOT NULL,
source
share