Sqlgetinstalleddrivers不返回访问驱动程序。 [英] Sqlgetinstalleddrivers does not return the access driver.

查看:134
本文介绍了Sqlgetinstalleddrivers不返回访问驱动程序。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

函数SQLGetInstalledDrivers不返回应用程序的访问驱动程序(* .mdb)。



Visual stodiu community 2015 C ++。



我尝试了什么:



我添加了驱动程序ODBC =>用户数据源。

The function SQLGetInstalledDrivers does not return the access driver for the application (*.mdb).

Visual stodiu community 2015 C++.

What I have tried:

I had add the driver in the ODBC => User Data Source.

推荐答案

可能有两个原因:

There may be two reasons:


  1. A 32/64位不匹配(操作系统,驱动程序,应用程序)

  2. 传递给 SQLGetInstalledDrivers 的缓冲区不够大(返回列表被截断)


  1. A 32/ 64 bit mismatch (OS, driver, application)
  2. The buffer passed to SQLGetInstalledDrivers was not large enough (returned list is truncated)


感谢您的回答。

我注意到了驱动程序存在于数据源(ODBC)中,

但它在odbcinst.ini文件中不存在,也许是问题所在。

你知道怎样才能更新dbcinst.ini文件,

以及导致文件不更新的原因。
Thanks for the answer.
I noticed that the driver exist just in the Data Source(ODBC),
but it is not exist in the odbcinst.ini file, maybe it's the problem.
May you know how can I update the dbcinst.ini file,
and what caused the file not to update.


这篇关于Sqlgetinstalleddrivers不返回访问驱动程序。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆