source file path/db name ssis

Shambhu Rai 1,406 Reputation points
2023-06-06T12:30:27.6166667+00:00

Hi Expert,

how to get db name or source file path from packages

for an example

User's image

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,713 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,799 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,453 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 32,821 Reputation points
    2023-06-07T02:15:44.9233333+00:00

    Hi @Shambhu Rai,

    Check below code to see if it is helpful.

    Use SSISDB
    select  
         prj.name                    as 'ProjectName'
        ,pa.name                     as 'SSISPackageName'
        ,op.parameter_name           as 'ParmaterName'
        ,op.design_default_value     as 'ConnectionString'
    from    
         catalog.object_parameters   op
    join catalog.projects            prj
      on op.project_id               = prj.project_id
    join [catalog].[packages]        pa 
      on pa.project_id               = prj.project_id
    where op.parameter_name          like '%ConnectionString%'
    
    

    User's image

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.


  2. Olaf Helper 40,816 Reputation points
    2023-06-07T05:59:50.9433333+00:00

    how to get db name or source file path from packages

    What for DB name or source file from which package?

    from packages

    Open the package in SSDT and lookup the connection manager for details.