1. 程式人生 > >How to fix "OLE DB provider is not registered"

How to fix "OLE DB provider is not registered"

SSIS從Excel2007(xlsx)檔案中抽取資料儲存到資料庫,提示以下錯誤:

Error   1       Validation error. Data Flow Task: Package: The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered. If the 32-bit driver is not installed, run the package in 64-bit mode. Error code: 0x00000000.  An OLE DB record is available.  Source: "Microsoft OLE DB Service Components"  Hresult: 0x80040154  Description: "Class not registered".   Package.dtsx    0       0 

在把檔案儲存成為Excel2003(xls)後,可以讀取。

初步懷疑是驅動問題。

到這一步大多數人已經可以正常使用了。

其他備選方案:

1.在專案屬性當中,把Run64BitRuntime設定為False.

2.在Connection Manager當中,設定DelayValidation屬性為True.