集成服务中的连接管理器

connection manager in integration Services

我需要在我的包中创建连接管理器,我需要它们是动态的

示例:如果我在 UAT 中部署包,它应该获取 UAT 环境的连接管理器 类似的方式,它应该映射到部署它的相应环境

注意:我使用的是 Sql 2008R2

实现此目的的方法是使用 "Package Configuration"。 请阅读以下内容以了解更多信息以及如何实施它:

https://msdn.microsoft.com/en-us/library/cc895212.aspx

您可以使用SSIS Package Configurations

我主要使用 SQL Server table 选项。

SQL 服务器 SSIS 配置类型

If you select the SQL Server configuration type, you specify the connection to the SQL Server database in which you want to store the configurations. You can save the configurations to an existing table or create a new table in the specified database. The following SQL statement shows the default CREATE TABLE statement that the Package Configuration Wizard provides.

CREATE TABLE [dbo].[SSIS Configurations]
(
ConfigurationFilter NVARCHAR(255) NOT NULL,
ConfiguredValue NVARCHAR(255) NULL,
PackagePath NVARCHAR(255) NOT NULL,
ConfiguredValueType NVARCHAR(20) NOT NULL
)