SQL Server Package Configuration
-
How do I use a value from a Package Configuration in the Connection Manager? I am using an SQL Data Source, not an Environmental Variable. I have set up the Package Configuration on an SSIS package to point to a table that holds some Connection Strings. How do I set up a source or destination in the Connection Manager that uses this Connection String? I am using Visual Studio 08. I took over a project that will one day be moved from a development server to a production server. When that happens, we will want to update many of the connections to use a new location. A config table already exists and if I can get the connection strings passed to the packages, I can just update the location on the table instead of editing each package. What I've read about Package Configurations leads me to believe this is one way to do that, but I have not found any explanations on how. Many descriptions of how to set up and connect to the config table, but nothing on how to use the value you pull from the table to connect to a source. I am not looking for other methods to do that right now. I want to understand how this method is supposed to work. Thanks
-
Answer:
SSIS configurations are set on the assumption that you're using the same names for variables, connection managers, etc. All you should need to do is assign the config to the package itself at the package level, and it will farm out the values appropriately.
soelo at Ask.Metafilter.Com Visit the source
Other answers
Here's a decent walkthrough on package configuration from a config table. Feel free to ping me if you need more help. http://mikedavissql.com/2011/10/04/using-configuration-tables-in-ssis-20082005/
mrdaneri
That walk through is helpful in adding new lines to the config table or creating a brand new config table. But I already have a config table with my filters and connection strings set up. You have to reuse existing filters to handle those. The issue I was having was "how to use the value you pull from the table to connect to a source". After brainstorming with some coworkers, we now understand that the OLEDB connection is updating itself based on the connection string. This is the part that I feel is missing from all of the tutorials I've been reading. There is no indication in VS 2008 that the connection is based on the Package Configuration instead of hard-coded, is there? If the configurations exist, can I assume that the connections are using them?
soelo
Related Q & A:
- How to control the excessive use of ram by SQL Server?Best solution by Database Administrators
- Can I create a second filestream container on an existing SQL Server 2008 database without going offline?Best solution by Database Administrators
- How to connect Sql Server Database from android app?Best solution by Stack Overflow
- How to upgrade sql server express 2005 to 2008R2?Best solution by Server Fault
- Does it ever make sense to use RAM Disk to force RAM allocation for tempdb with SQL Server 2008?Best solution by Database Administrators
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.