我正在尝试使用 foreach 循环容器将几个 excel 文件导入表中,我指定了要使用的文件夹和文件(* .xls),然后我创建了一个路径变量然后我去了excel源连接并在“表达式”属性中选择了变量。我创建了 foreach 容器,但是 excel 源的 connectionString 只显示Provider=Microsoft.Jet.OLEDB.4.0;
,所以这意味着它没有采用变量值。我能做些什么来解决这个问题?
注意:我使用的是 SQL Server 2012
附加信息:
Error at Data Flow Task [Excel Source [20]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error at Data Flow Task [SSIS.Pipeline]: Excel Source failed validation and returned error code 0xC020801C.
Error at Data Flow Task [SSIS.Pipeline]: One or more component failed validation.
Error at Data Flow Task: There were errors during task validation.
Error at Package [Connection manager "Excel Connection Manager"]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E4D.
(Microsoft.DataTransformationServices.VsIntegration)