SolvedPrivate

SQL 2012 Package Configuraiton Variables

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
string fuctions 4 26
SQL Server 2012 - Merge Replication Issue 1 23
sql query to calculate avaerage 21 40
SQL Server Import/Error Wizard error 12 19
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

810 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