source file path/db name ssis

Shambhu Rai 1,411 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 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.
3,061 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
SQL Server Other
{count} votes

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 41,491 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 47,436 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.