June 26, 2014 at 4:00 pm
Hi,
I have three databases and 40 tables within each database on my server, for each of the tables I want to know which SSIS package generates that table. Is there a script that can do this?
If the SSIS package does not create or populate a table on the server I then want to check if there is a stored procedure that populates this.
Thanks
June 26, 2014 at 5:19 pm
For the stored procedure part, you can query sys.sql_modules.
To find which packages touch which tables, you would have to parse the xml of each package or look at the package by hand.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
June 26, 2014 at 11:57 pm
How would you parse the XML? Do you have any sql code that would do this? Thanks
June 27, 2014 at 7:38 am
Here is a sample http://www.sqlservercentral.com/Forums/Topic1380488-21-1.aspx.
Are your packages stored in msdb or on disk?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
June 30, 2014 at 3:26 pm
I am not quite sure? How would I know if the package is stored on the msdb or disk?
Thanks
June 30, 2014 at 3:44 pm
You can try a query like what was in that article. If it returns results, then you have the packages stored in SQL Server (or at least some of them are).
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
June 30, 2014 at 4:25 pm
When I deploy a SSIS package I would do this in Visual Studio by clicking on File > Save Copy of
A new window would appear which would say "Save Copy of Package" with the following fields:
Package Location: SQL Server
Server: ServerName
Authentication type: Windows Authentication
Package path: /Package
Protection level: Rely on server storage and roles for access control
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply