无法更新SSIS包中的Excel源属性

我有一个SSIS包,将Excel电子表格导入SQL Server 2008数据库。

我在连接pipe理器选项卡中有一个Excel连接,它指向我的本地计算机上的Excel文件。

但是,当我打开数据stream中的Excel源,如果我尝试查看列或更改“名称的Excel表:”我得到这个错误。

Error at LoadMasterData [Connection manager "SourceConnectionExcel"]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "Unspecified error".

Error at Data Flow Task 1 [Source - Sheet1$ [1]]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "SourceConnectionExcel" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

该包是使用导入数据从SQL Server Management Studio保存的。 当我运行包时,它工作正常,但我希望能够指定电子表格名称作为variables。 当我改变选项来指定表格名称作为一个variables时,它不会让我用“确定”buttonclosures窗口,只是一直给我同样的错误,如上所述。

有没有人经历过这种行为之前,可以帮助我得到这个工作?

谢谢

你在32位或64位上运行? 如果您使用的是64位版本,则需要知道Excel没有提供程序 – 您必须强制执行不使用64位的程序包。 右键单击项目,属性,debugging:Run64BitRuntime – 设置为false。