How to connect Excel Source via OLEDB or any other source in SSIS?

时光怂恿深爱的人放手 提交于 2019-12-11 04:17:07

问题


Is there any other way rather than "Excel connection manager" to connect Excel as Source in SSIS.

I am asking this question because I have an issue with connecting Excel with "Excel Connection Manager" because in my system Excel 32 bit is installed and the Visual Studio version is 64 bit.

I tried connecting it with ODBC but wasn't successful.


回答1:


There is not Visual Studio 64-bit version, I think you should change the Run64BitRuntime Property to False:

  • FAQ - How to run SSIS Packages using 32-bit drivers on 64-bit machine
  • SSIS run64bitruntime on 64 bit



回答2:


Install both AccessDatabaseEngine 32bit and 64bit

If you need to install AccessDataBaseEngine x64 alongside with 32-bit installation, you need to run the installation in passive mode:

Passive mode installation steps

  1. Open the Command Prompt by typing cmd in the Windows search box under the Start menu and selecting cmd.exe
  2. Type the file path and file name of the 64-bit Access Database Engine 2010 install file, followed by a space and /passive (this runs the installation without showing any error messages).
  3. Open the Registry Editor by typing regedit in the Windows search box under the Start menu and selecting regedit.exe
  4. Delete or rename the mso.dll registry value in the following registry key:

    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\FilesPaths" 
    

More details and screenshots are found in the link below

Reference

  • How to install 64-bit Microsoft Database Drivers alongside 32-bit Microsoft Office


来源:https://stackoverflow.com/questions/57107255/how-to-connect-excel-source-via-oledb-or-any-other-source-in-ssis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!