Search SSIS intance for specific table name

  • Is there a way to search a SQL2012 Integration Services instance for SSIS jobs that update a specific table?

    Can I complete this query to get what I'm looking for?
    USE SSISDB
    select * from ???
    where ??? like '%<table name>%'

  • dan-572483 - Tuesday, April 25, 2017 11:00 AM

    Is there a way to search a SQL2012 Integration Services instance for SSIS jobs that update a specific table?

    Can I complete this query to get what I'm looking for?
    USE SSISDB
    select * from ???
    where ??? like '%<table name>%'

    This can't be done. Packages are held in SSISDB in encrypted format.
    An alternative is to use a Windows search tool to search through the package files in your VCS.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • Phil Parkin - Tuesday, April 25, 2017 11:25 AM

    dan-572483 - Tuesday, April 25, 2017 11:00 AM

    Is there a way to search a SQL2012 Integration Services instance for SSIS jobs that update a specific table?

    Can I complete this query to get what I'm looking for?
    USE SSISDB
    select * from ???
    where ??? like '%<table name>%'

    This can't be done. Packages are held in SSISDB in encrypted format.
    An alternative is to use a Windows search tool to search through the package files in your VCS.

    Does windows search search in file contents though for DTSX's?
    I found I needed to use a tool like astrogrep to search through the DTSX's.  But maybe this is better in Windows versions higher than 7 OR I just need to learn how to search better.

    The above is all just my opinion on what you should do. 
    As with all advice you find on a random internet forum - you shouldn't blindly follow it.  Always test on a test server to see if there is negative side effects before making changes to live!
    I recommend you NEVER run "random code" you found online on any system you care about UNLESS you understand and can verify the code OR you don't care if the code trashes your system.

  • bmg002 - Tuesday, April 25, 2017 2:47 PM

    Phil Parkin - Tuesday, April 25, 2017 11:25 AM

    This can't be done. Packages are held in SSISDB in encrypted format.
    An alternative is to use a Windows search tool to search through the package files in your VCS.

    Does windows search search in file contents though for DTSX's?
    I found I needed to use a tool like astrogrep to search through the DTSX's.  But maybe this is better in Windows versions higher than 7 OR I just need to learn how to search better.

    I'm on W10, and from there I see that I could modify my indexing options to include DTSX files.
    But I haven't, because I don't do it that way. Instead, I use FileSeek from Binary Fortress. This is fast and allows Regex matching, which can come in very useful for advanced searches.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • Brandie did an article which included searching the dtsx files not too long ago using PoSh: http://www.sqlservercentral.com/articles/database+dependencies/153072/?utm_source=SSC&utm_medium=pubemail

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • Thom A - Wednesday, April 26, 2017 6:12 AM

    Brandie did an article which included searching the dtsx files not too long ago using PoSh: http://www.sqlservercentral.com/articles/database+dependencies/153072/?utm_source=SSC&utm_medium=pubemail

    That is a good article, but unfortunately it's not useful in this instance because it depends on packages having been deployed to MSDB rather than SSISDB

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • Phil Parkin - Wednesday, April 26, 2017 6:49 AM

    Thom A - Wednesday, April 26, 2017 6:12 AM

    Brandie did an article which included searching the dtsx files not too long ago using PoSh: http://www.sqlservercentral.com/articles/database+dependencies/153072/?utm_source=SSC&utm_medium=pubemail

    That is a good article, but unfortunately it's not useful in this instance because it depends on packages having been deployed to MSDB rather than SSISDB

    The PoSh should work, for example i just ran some PoSh similar to:
    Select-String -Path "C:\VSProjects\SSIS Projects\Trunk\Packages\*.dtsx" -Pattern brpolicy | group path | select name
    This returned any packages i had, in that project, that reference a table named brpolicy.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • Can you do a search like that in TFS?

  • dan-572483 - Wednesday, April 26, 2017 10:27 AM

    Can you do a search like that in TFS?

    On a local repo, yes, they're just files.
    On the TFS server, no, the files are held in SQL Server tables, so the search would be different.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

Viewing 9 posts - 1 through 8 (of 8 total)

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