SolvedPrivate

SQL 2012 Package Configuraiton Variables

Posted on 2014-03-25
3
15 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
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 39

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

SQL Server  2012 Release with lots of Enhancements in Database Engine functions, SSIS, SSRS and some of new services like Data Quality Server and Master Data Service. Of particular interest, and the focus of this Article is SSIS. So, time to elab…
Over the last 2 years, I have been working on SSIS 2008. Really the tough tasks in SSIS are to deploy packages and pass parameters (Values from outside package). The latter is certainly a headache for developers, particularly for me. We had to ma…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

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

11 Experts available now in Live!

Get 1:1 Help Now