After I deploy a .dtsx SSIS package is there any query or C# code i could run to get it’s bath on the drive or could I retrieve the deployed .dtsx file.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As the package is stored in
MSDBsoRight Clickon the SSIS package placed in SQL Server and then clickRun Package.You will get a dialogue box
Click on the
Connection Managerstab and then change the connetion strings for individual connection.Else
if SSIS package is created using
xml config filethen click theconfiguration taband open the config file to know the details of packageUpdate 1:-
Add this namespace
Microsoft.SqlServer.Dts.Runtime;2.Reading XML
Underlying code for every dtsx package is
xml.So you can load the XML using C# and then iterate through each node and find the information .3.Getting information from dtsx.config file .
As i said above the ssis package may have a xml config file which stores all the information.This xml file is much easier to read in C# then reading the entire DTSX package mentioned in
point 24.If package configuration is stored in sql server then use the below code .The code is taken from Collecting Information of SSIS package
Conclusion :-
If the SSIS package is created using config file . Locate where it is stored .
If it is stored in
XML configuration typethen load that XML file in C# and search for the nodes . If the ssis data is stored insql serverthen run the above sql and get all the information . The sql query returns you the package details in xml type which you can read in C# and get the desired informationUpdate 2:-
If SSIS package is deployed in sql server then the below code will help you retrieve the package details using C#
The Stored Proc which retrives the information is :-
The below sql code gives the
package name,path,descriptionandpackage datainxmlformat