SSIS包配置動態配置數據庫鏈接

 

動態鏈接數據庫便於維護數據庫

用SSIS包配置實現ide

 

一、控制流頁籤 - 右鍵 - 包配置測試

 

二、配置xml文件spa

三、指定鏈接屬性:ServerName、UserName、Passwordcode

 

 

 

測試:xml

一、配置錯誤blog

 

 

二、正確配置io

 

1 <?xml version="1.0"?><DTSConfiguration><DTSConfigurationHeading><DTSConfigurationFileInfo GeneratedBy="Joe-PC\Joe" GeneratedFromPackageName="HRPC" GeneratedFromPackageID="{6403CC76-1E3C-4F05-A51B-69C1ACFCAE38}" GeneratedDate="2015/9/17 10:33:03"/></DTSConfigurationHeading>
2 
3 <Configuration ConfiguredType="Property" Path="\Package.Connections[浪潮GS].Properties[Password]" ValueType="String"><ConfiguredValue>aaaaaa</ConfiguredValue></Configuration>
4 
5 <Configuration ConfiguredType="Property" Path="\Package.Connections[浪潮GS].Properties[ServerName]" ValueType="String"><ConfiguredValue>192.168.8.4</ConfiguredValue></Configuration>
6 
7 <Configuration ConfiguredType="Property" Path="\Package.Connections[浪潮GS].Properties[UserName]" ValueType="String"><ConfiguredValue>lc0019999</ConfiguredValue></Configuration></DTSConfiguration>
View Code

相關文章
相關標籤/搜索