SSIS的deployment model 有两种:project deployment 和 package deployment,默认的deployment model是Project deployment model。在package deployment model下,可以使用package configuration。
Configurations are applid only when packages are executed.
一,Project Deployment Model
在Project Deployment Model下,使用Project.params来存储项目中使用的参数,使用connection managers来存储项目中使用的Connection Manager。
二,Package Deployment Model
DataSource 跟SSAS有关
1,在package Control的空白处,点击右键弹出快捷菜单,选择Package Configurations
2,Enable package configurations,add new configuration
3,Configuration Type共有5个,常用的是选中Sql Server。
4,Configuration Type选择SQL Server之后,需要指定table存储的DB的链接和表名。
Connection:configuration table所在的DB的链接
Configuration Table:配置表的名字(table name)
Configuration filter:Configuration Table可以复用,其他Package也可以使用这个table来存储配置信息,使用一个key words来为唯一确定某一个package使用的配置信息。
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 )
The name that you provide for the configuration is the value stored in the ConfigurationFilter column.
5,选择package的特定的属性值导入到Configuration Table中。
Connection Managers:Package的 connection managers
Executables:package 的 Executable(可执行组件)
propertites:package的properties
Variables:package的variables
推荐文档:
http://www.cnblogs.com/biwork/p/biworklog.html
https://msdn.microsoft.com/en-us/library/ms141682(v=sql.105).aspx
原文:http://www.cnblogs.com/ljhdo/p/4811771.html