Hand Install of 64-bit MS Access ODBC drivers when 32-bit Office is present

女生的网名这么多〃 提交于 2019-11-26 20:26:50
techvslife

using the /passive switch you can install 64-bit ace drivers even if 32-bit ms office is present: http://blog.codefluententities.com/2011/01/20/microsoft-access-database-engine-2010-redistributable/

Just be warned that installing the 2010 64-bit ACE engine on a machine with 2010 32-bit Office already installed CAN lead to some wacky behavior in your already existing Office 2010.

I ran into this same issue with a SpringJDBC app that connected to an access DB when I ported it over to a win7x64 box running eclipse-4.3x64 Kepler.

What ended up working for me was to COMPLETELY remove 32bit Office2010 [ and Lync and other MS apps tied to this ] and install the 64bit versions.

Here's the really fun part: The driver name to which you use for Access64bit driver name is now:

|Microsoft Access Driver (*.mdb, *.accdb)|

Yes, that's a comma-space after "mdb".

So, my spring-config for the Datasource looks like:

<bean id="dataSource"    
    class="org.springframework.jdbc.datasource.DriverManagerDataSource"
    lazy-init="default" 
    autowire="default" 
    dependency-check="default">

    <property name="driverClassName" 
          value="sun.jdbc.odbc.JdbcOdbcDriver"/>

    <property name="url"        
          value="jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb, *.accdb);DBQ=/Data/dbs/cl97_2k.mdb;"/>       
          <!--  Above is Access 64bit Driver Reference  -->

          <!-- Below is the Access 32bit Driver Reference.        
          value="jdbc:odbc:;DRIVER=Microsoft Access Driver (*.mdb);DBQ=/Data/dbs/cl97_2k.mdb;"/>
          -->

    <property name="username" value=""/>
    <property name="password" value=""/>

</bean>

Hope this Helps!

watbywbarif

I have managed to install both without side effects on Office installation and without using /passive option. Downside is that is tested and working only on one Office version for now. Microsoft.ACE.OLEDB.12.0 driver for x64 app - how to make it work with x86 MS Office installed?

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