How to use MS Access ODBC driver without installing it?

我是研究僧i 提交于 2020-12-14 12:37:39

问题


Up until today our company workstations would typically have the MS Office ODBC drivers installed in:

C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14

However, for some reason the configuration recently changed so that for example Microsoft Access Driver (*.mdb, *.accdb) now points to:

C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE16

Unfortunately the actual installation of the driver is still in the OFFICE14 directory.

Is there any way to still use this driver to connect to Access?

I don't have admin access, so am looking for any possible work-around until tech-support acknowledge & resolve the issue.


回答1:


Unfortunately, this is not possible. The driver will have to be installed and registered as an ODBC component. So far, I am aware of 3 ways to do so:

  1. Use of ODBCCONF.EXE which resides in \windows\system32\ and \windows\syswow64.
  2. Use of SQLInstallDriverEx() API provided by odbccp32.dll.
  3. Manually create the registry keys (look at this SO answer)


来源:https://stackoverflow.com/questions/37936806/how-to-use-ms-access-odbc-driver-without-installing-it

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