问题
I have a 2012 SSIS project with many connection manager defined at project level. The project also includes many packages having a reference to these connection managers. Now I want to convert my project to a deployment model but the wizard specifies that I need to remove connection managers at project which means moving the connection managers into packages.
How can I move the project level connection managers to my package?
回答1:
You will need to convert the project from the Project Deployment Model to the Package Deployment Model.

From your description, you are seeing errors like this

This means you need to go into each package (sorry) and for every connection manager that indicates it's a (project)
level one, you will right click and request that it be converted to a package level.

回答2:
You may find yourself confused by this message if you look in the project's parameters and it shows empty, and you have only package level connections. This can happen if you ever had project connections--the XML behind the package retains the deleted information. (This is in SSDT for Visual Studio 2015.) In that case the way to correct it is to edit the XML manually.
- Back up the package! The chances for errors here are high, and a single typo can render the designer unable to show you the package.
- Right-click on the package in solution explorer and select View Code.
- Using Find, search for locate the Project Variables opening tag. it will look like this:
<DTS:PackageParameters>
- Select the tag and everything down to the end tag, which will be
</DTS:PackageParameters>
and delete it. - Save the file and close it.
- Return to the designer and proceed with changing the deployment model as @billinkc describes above.
That should do it.
Joey
来源:https://stackoverflow.com/questions/13472695/ssis-how-to-move-a-project-connection-manager-into-package