Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SSIS: Finding Table Used in Other Package(s) Expand / Collapse
Author
Message
Posted Tuesday, November 19, 2013 12:27 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 11:49 AM
Points: 28, Visits: 142
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.
Post #1515731
Posted Wednesday, November 20, 2013 9:39 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 7:12 AM
Points: 513, Visits: 1,000
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
Post #1516116
Posted Wednesday, November 20, 2013 11:58 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 11:49 AM
Points: 28, Visits: 142
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!
Post #1516167
Posted Thursday, November 21, 2013 8:49 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 7:10 AM
Points: 281, Visits: 1,065
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.
Post #1516465
Posted Thursday, November 21, 2013 8:58 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 11:49 AM
Points: 28, Visits: 142
That sounds like a great method also, and yes .dtsx is the extension I was looking for as well. = )
Post #1516469
Posted Thursday, November 21, 2013 9:08 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 7:10 AM
Points: 281, Visits: 1,065
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?
Post #1516474
Posted Thursday, November 21, 2013 9:21 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 7:12 AM
Points: 513, Visits: 1,000
BI Documenter from Pragmatic Works is pretty good and would do what you need. It will set you back a cool $595 though

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
Post #1516479
Posted Thursday, November 21, 2013 9:47 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 7:10 AM
Points: 281, Visits: 1,065
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

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.
Post #1516495
Posted Thursday, November 21, 2013 11:47 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 11:49 AM
Points: 28, Visits: 142
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.
Post #1516535
Posted Friday, November 22, 2013 12:25 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Monday, September 15, 2014 7:23 AM
Points: 5,074, Visits: 11,852
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.

When you ask a question (and please do ask a question: "My T-SQL does not work" just doesn't cut it), please provide enough information for us to understand its context.
Post #1516662
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse