Home Forums SQL Server 2012 SQL 2012 - General List of all dtsx files used in [Integration Services Catalog] - I need help with the SELECT statement RE: List of all dtsx files used in [Integration Services Catalog] - I need help with the SELECT statement

  • Here is what I've used to search for fields within SSIS packages(dtsx files) stored in the MSDB database.


    --Connect to database:  msdb
    SELECT [name] AS SSISPackageName,
        CONVERT(XML,CONVERT(VARBINARY(MAX), packagedata)) AS SSISPackageXML,
        CONVERT(VARCHAR(MAX),CONVERT(VARBINARY(MAX), packagedata)) AS SSISPackageVarchar
    INTO #SSISObjectSearch
    FROM msdb.dbo.sysssispackages
    ;

    SELECT *
    FROM #SSISObjectSearch
    WHERE SSISPackageVarchar LIKE '%ColumnNameHere%'
    ORDER BY SSISPackageName
    ;

    -------------------------------------------------------------
    we travel not to escape life but for life not to escape us
    Don't fear failure, fear regret.