SolvedPrivate

SQL 2012 Package Configuraiton Variables

Posted on 2014-03-25
3
19 Views
Last Modified: 2016-02-10
Is there a way, in sql server 2012 SSIS to configure package configuration variables ? this was invaluable in past SSIS. What is the  current way to do this, so that when we move packages, we don't have to change connections....Also, i used sql server in past to store those values in a config database. Any chance they still exist ?
0
Comment
Question by:basile
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
PadawanDBA earned 250 total points
ID: 39954214
I do believe the connection manager settings are parameterized by default now.  So upon execution you can specify those values.

http://blogs.msdn.com/b/mattm/archive/2011/07/22/parameterized-connection-managers.aspx?Redirected=true
0
 
LVL 40

Assisted Solution

by:lcohan
lcohan earned 250 total points
ID: 39957214
http://technet.microsoft.com/en-us/library/ms141682.aspx

<<
•Configurations make it easier to move packages from a development environment to a production environment. For example, a configuration can update the path of a source file, or change the name of a database or server.

•Configurations are useful when you deploy packages to many different servers. For example, a variable in the configuration for each deployed package can contain a different disk space value, and if the available disk space does not meet this value, the package does not run.

•Configurations make packages more flexible. For example, a configuration can update the value of a variable that is used in a property expression.

>>

So...you can create and use Environment Variables to be used in conjunction with XML package configuration so you will have the SSIS file(DTSX) untouched and only have to modify the XML config file to deploy it to different servers.

http://msdn.microsoft.com/en-us/library/cc895212.aspx

More details and "how to" at:
http://dwjunkie.wordpress.com/2013/01/14/ssis-2012-configuration-guide-part-1-introduction/
http://www.sqlservercentral.com/blogs/samvangassql/2012/04/24/change-package-properties-using-parametersssis-2012/
0
 
LVL 1

Author Comment

by:basile
ID: 39959860
Interesting, and of course, in sql 2008 R2, i'm using package configuraiton variables, with my configuration database in an enviornment variable. So i understand what you are saying. Moving forward to sql 2012, how is this implemented  ?I guess i need to go thru your links. It seems like the concepts are different.

For example, in the past, i had the env variable, the config databaes, and package configuraitons which would point to the config database. Then when i moved the package, each enviornment, PROD, UAT, DEV, i wouldn't have to configure anything else, becuase each config db, had the right values (connection strings, flat file connections, return variables, etc).

Is this same type of development possible in SQL 2012? i'm sure it is, but it's a bit of a learning curve. Hence, we are afraid to move forward, until we understans a bit more about the changes.
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

My client sends a request to me that they want me to load data, which will be returned by Web Service APIs, and do some transformation before importing to database. In this article, I will provide an approach to load data with Web Service Task and X…
My client has a dictionary table. They're defining a list of standard naming convention. Now, they are requiring my team to provide us a mechanism how to match new incoming data with existing data in their system.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

730 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