How to find which SSIS packages are called by which jobs

  • Hi,

    I am in the process of getting all the SSIS packages, which are active i.e they are called by jobs or exes. I don't see any sys procedures/tables for this. I don't think so, we have log for all the SSIS packages. I do get list of all the SSIS packages from sysdtspackages90, but I want the only ones, which are executed.

    Thanks,

    VG

  • Take a look at:

    SELECT j.name,

    js.step_id,

    js.step_name,

    js.command

    FROM msdb.dbo.sysjobs j,

    msdb.dbo.sysjobsteps js

    WHERE j.job_id = js.job_id

    AND js.subsystem = 'SSIS'

    CEWII

  • Wow, just perfect for me...just added more where condition to this...

    SELECT j.name,

    js.step_id,

    js.step_name,

    js.command

    FROM msdb.dbo.sysjobs j,

    msdb.dbo.sysjobsteps js

    WHERE j.job_id = js.job_id

    --just added this get ssis packages called from command line

    AND (js.subsystem = 'SSIS' or command like '%dtexec%') and j.enabled = 1

    Thank you very much!!!

    VG

  • Great, glad to be of assistance.

    CEWII

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply