Solved

Adding configuration file to SSIS package

Posted on 2014-02-11
7
462 Views
Last Modified: 2016-02-10
I have an SSIS package with two connections in Connection manager. It reads data from one database and copies it into another. I would like to be able to dynamically specify source server, source database, target server, target database and other variables to make the package dynamic, since it will run in 3 different environments: Dev, QA, and Production. Thus all the server names will be different. Can someone guide me through adding a configuration file and making server names and database names dynamic?
0
Comment
Question by:YZlat
  • 3
  • 2
  • 2
7 Comments
 
LVL 16

Expert Comment

by:Surendra Nath
ID: 39851530
Yes, you can definelty add the configuration and schedule the same using the SQL Agent Jobs...

Please use the below tutorial to do the same

http://technet.microsoft.com/en-us/library/ms138023(v=sql.100).aspx
0
 
LVL 3

Expert Comment

by:oromm
ID: 39851569
Adding onto that...
Suggest on the package that reads/copies the data that you add a package configuration of type Parent Package Variable that depends on your connection string specifics to be provided.  Then you can have multiple parent packages, one for each environment, that call into that first package passing in the appropriate source and destination information.
0
 
LVL 35

Author Comment

by:YZlat
ID: 39853237
Surendra, actually my question was not how to run the package but how to add configuration to it.

oromm, I am new to SSIS and I am not sure I understand, could you please explain?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 16

Assisted Solution

by:Surendra Nath
Surendra Nath earned 500 total points
ID: 39853356
0
 
LVL 3

Expert Comment

by:oromm
ID: 39853914
The 2nd tutorial link sent by Surendra has a section about Parent Package Variable Configurations.  From those tutorials, once you have a better understanding of the use/application/implementation of Package Configurations, you can configure your "working" package (i.e. the one that is doing the primary work to be accomplished) to pull the database connection string parameters from a parent/calling package.  

You would then have a parent package for each of your environments with connection managers specific to those environments, or just variables with the connection string specifics.  Each of those parent packages would have an "Execute Package Task" in the Control Flow to execute the same working package.  

Essentially your working package is dependent upon the calling package to provide the connection information necessary.  It is oblivious to anything about that calling/parent package, other than the fact that there are package variables that are providing values to your working package.
0
 
LVL 35

Accepted Solution

by:
YZlat earned 0 total points
ID: 39856156
0
 
LVL 35

Author Closing Comment

by:YZlat
ID: 39866885
I used my own link in providing the solution
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calculated columns 13 60
TSQL Where clause for Date with CASE - what is wrong? 11 71
SQL Server - SQL field is defined as text 3 26
sql Total query 2 14
Lessons learned during ten years of interviewing for SQL Server Integration Services (SSIS) and other Extract-Transform-Load (ETL) contract roles and two years of staff manager interviewing contractors.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now