SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS: Finding Table Used in Other Package(s)


SSIS: Finding Table Used in Other Package(s)

Author
Message
rarascon
rarascon
SSC Journeyman
SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)

Group: General Forum Members
Points: 76 Visits: 143
Hello - I'm trying to determine where a particular table(s) that SSIS is loading during a monthly job is being used in other packages. The package that loads these tables have in the past several months been taking much longer than before, and I'm trying to see if I can eliminate this load all together.

I just happened to check the Allocation packages in our database to see how the tables were being used, and discovered that I can't find anywhere when/where those tables are being used. Is there a function or query I can run in SSMS or elsewhere to determine how to find this information?

Thx in advance - please let me know if I need to clarify something.
PB_BI
PB_BI
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2478 Visits: 2593
If you have the packages stored in the SQL Server then you could do something like this:

SELECT Name, CONVERT(xml,CONVERT(varbinary(max),PackageData)) AS PackageSource
FROM msdb.dbo.sysssispackages
WHERE CONVERT(varbinary(max),PackageData) LIKE '%Your Table Name%'



It's a bit of a hack but it should work.

If they are stored in the filesystem then you would have to search the package xml.

Hope that helps :-)




I'm on LinkedIn
rarascon
rarascon
SSC Journeyman
SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)

Group: General Forum Members
Points: 76 Visits: 143
Thx, yayomayn! This is very cool, and I'll give it a shot now!
What I wound up doing was opening all of the packages and reports in their "xml" format in Notepad++, and doing a search for all open documents to see if anything came up. Nothing so far except for the packages in question; however, I'm willing to review with this method as well.
Thx again!
below86
below86
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1151 Visits: 2501
We have ours stored as .dtsx files on our server. I can use a Ultra Edit to search just the *.dtsx files for the table name I'm looking for.

-------------------------------------------------------------
we travel not to escape life but for life not to escape us
rarascon
rarascon
SSC Journeyman
SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)

Group: General Forum Members
Points: 76 Visits: 143
That sounds like a great method also, and yes .dtsx is the extension I was looking for as well. = )
below86
below86
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1151 Visits: 2501
This speaks to a bigger question I have at times. "What all uses this table?" It would be nice to know every SSIS package, .SQL file or stored procedure that uses it. We do still have some DTS packages and maybe a few 'Data Junction' processes. I know I can do certain things for each type of file I want to look at but it would be nice to have all that info in one place, like a table to search.

I started working on something a few years ago to do this, just can't get the time to finish it. Anyone else develop anything similar?

-------------------------------------------------------------
we travel not to escape life but for life not to escape us
PB_BI
PB_BI
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2478 Visits: 2593
BI Documenter from Pragmatic Works is pretty good and would do what you need. It will set you back a cool $595 though Ermm

In SQL 2012 you have the SSISDB with a bunch of views you can use to pick up info on your packages. Having not used it in any great detail though I don't know how deep it actually goes.




I'm on LinkedIn
below86
below86
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1151 Visits: 2501
yayomayn (11/21/2013)
BI Documenter from Pragmatic Works is pretty good and would do what you need. It will set you back a cool $595 though Ermm

In SQL 2012 you have the SSISDB with a bunch of views you can use to pick up info on your packages. Having not used it in any great detail though I don't know how deep it actually goes.


Thanks for the info I'll pass this along for someone here to research.

-------------------------------------------------------------
we travel not to escape life but for life not to escape us
rarascon
rarascon
SSC Journeyman
SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)SSC Journeyman (76 reputation)

Group: General Forum Members
Points: 76 Visits: 143
Right, this is more along the lines of what I'm trying to do - I want to know if ANYTHING is using those tables before I disable the package.
Phil Parkin
Phil Parkin
One Orange Chip
One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)One Orange Chip (25K reputation)

Group: General Forum Members
Points: 25796 Visits: 20679
rarascon (11/21/2013)
Right, this is more along the lines of what I'm trying to do - I want to know if ANYTHING is using those tables before I disable the package.


I'm not sure that a text search will always give you that security. If any of your packages invokes stored procs or views, perhaps those objects reference the tables you are interested in.

So I would suggest doing a search in T-SQL, perhaps using SQL Search (which is free and works well), to look for references to those tables in other DB objects.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search