问题
Excel file is not being recognized by SSIS.
Error :
Could not retrieve table information from connection manager "Excel Connection Manager
Failed to connect to the source using the connection manager 'Excel Connection Manager'
I have tried installing 32-bit of redistributable which resolved this error but when I run this outside using SQL stored procedure it is failing, which is in turn resolved if i install 64 of redistributable but this is failing in SSIS,
Hence, I need 32-bit to run in SP, and 64-bit to run in SSIS but I cannot install both at the same time. Is there any solution to this issue.
回答1:
You can keep both as 32 bit by running the ssis in 32 bit mode by using dtexec 32 bit utility.
DTExec 32 bit is at:
C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn
DTExec 64 bit is at:
C:\Program Files\Microsoft SQL Server\90\DTS\Binn
refer to this to see how to run
- http://msdn.microsoft.com/en-us/library/ms162810.aspx
回答2:
There are 2 solutions:
(1) Run package in 32 bit in SSIS
Try running the package in 32-bit mode:
GoTo Project properties >> Debugging >> Run64BitRuntime = False
(2) Install both AccessDatabaseEngine 32bit and 64bit
Assuming that you meant the Access Database Engine by "redistributable"
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
- Open the Command Prompt by typing
cmd
in the Windows search box under the Start menu and selecting cmd.exe - 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). - Open the Registry Editor by typing
regedit
in the Windows search box under the Start menu and selectingregedit.exe
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/55240966/unable-to-connect-to-excel-via-ssis