• Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 39
  • Last Modified:

SSIS - ETL - Connection Manager

Hi

I have a etl package that i want to repoint to another database and server, problem is on other packages i have reporinted by changing the database name and server name in the connection manager, i have made the change and saved it but the package connection reverts back to the original database and server name at run time.

Can anyone tell me if they have experienced this bug and if so how they corrected it?

Thanks
0
ac_davis2002
Asked:
ac_davis2002
  • 4
  • 2
  • 2
2 Solutions
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
The below instructions are the 'Microsoft' way of handling dynamic connections (i.e. servers/databases) outside of an SSIS package, so you don't have to go it and edit to make a change.  

______________


Go to the SSIS menu, Package Configurations..., check the Enable Package Configurations checkbox, hit the Add button, and follow the prompts to create your own .dtsConfig file that will have all of the connection string info for your connections.

This .dtsConfig file is in .xml format, so it'll be difficult to read if you're not used to .xml files.

Then to deploy to another environment...

(1)  Make a copy of the .dtsConfig, and change the connection settings to the new environment.
(2)  Move the project files + new .dtsConfig file to wherever.
You may have to open the SSIS, go again to SSIS menu / Package Configurator, and set the new path to the .dtsConfig.  Not sure about that one.

Good luck.  Not abundantly simple I know.
0
 
liijaCommented:
Hi,

Your current problem might be caused by mixture of project and package level connection managers. If you are not using package configurations yet - you should use project level connections. Then you only need one change and it affects all the packages.

Now you might have package level connections in most of your packages - and one project level connection in your 'problemmatic' package.
0
 
ac_davis2002Author Commented:
Thanks Guys First Class!
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
ac_davis2002Author Commented:
Thanks again
0
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Thanks for the split.  Good luck with your project.  -Jim
0
 
ac_davis2002Author Commented:
Just one more question about this though...if I use this method on packages i create going forward, will it affect current packages? I dont want to mess up any that are currently live!!

Adam
0
 
liijaCommented:
Package configuration file is configured on the package level. So - it doesn't affect your current packages.

Same thing with package vs. project level data sources. You define the usage of data source connection on the packages. So - it doesn't affect your current packages either.

Jani
0
 
ac_davis2002Author Commented:
ACE thanks again!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now