简体   繁体   English

错误[HY010] [Microsoft] [ODBC驱动程序管理器]

[英]ERROR [HY010] [Microsoft][ODBC Driver Manager]

I get this error: 我收到此错误:

ERROR [HY010] [Microsoft][ODBC Driver Manager] The driver is incapable of 
supporting the current environment attributes.

when making a IDbConnection.Open() 制作IDbConnection.Open()

My machine is Win 7 64, the ODBC is configured as a System DSN using TimesTen client driver. 我的机器是Win 7 64,使用TimesTen客户端驱动程序将ODBC配置为系统DSN。

My collegues have the same setup but never seen the error, we've been trying to solve it for two days, any help is welcome. 我的同事具有相同的设置,但从未见过错误,我们已经尝试解决了两天,欢迎您提供任何帮助。

The driver is incapable of supporting the current environment attributes. 驱动程序无法支持当前的环境属性。

There are lots of reasons for getting the error but if I were to guess it would probably be because you are using a 64-bit opperating system - you have setup a 64-bit ODBC data source but your application is 32-bit. 出现错误的原因很多,但如果我猜是因为您使用的是64位操作系统,则已经设置了64位ODBC数据源,但您的应用程序是32位。 You need to be 100% sure that your application is the same bit size as your ODBC driver. 您需要100%确保您的应用程序与ODBC驱动程序的位大小相同。 To setup a 32-bit ODBC driver on a 64-bit machine you need to use the 32-bit ODBC Administrator usually found in 要在64位计算机上设置32位ODBC驱动程序,您需要使用通常在以下位置找到的32位ODBC管理器:

c:\Windows\SysWOW64\odbcad32.exe

If your application is 64-bit an you can not get a 64-bit ODBC driver you will need to use a product such as the Easysoft ODBC-ODBC Bridge . 如果您的应用程序是64位的,那么您将无法使用64位ODBC驱动程序,则需要使用Easyeasy ODBC-ODBC Bridge之类的产品 This allows you to connect a 64-bit application ODBC data source to an existing 32-bit data source or vice versa. 这使您可以将64位应用程序ODBC数据源连接到现有的32位数据源,反之亦然。 There is a large desciption of 64-bit / 32-bit ODBC on the Easysoft web site. Easysoft网站上对64位/ 32位ODBC有很大的要求。

If you have the correct bit size in both application and ODBC data source turn on Microsoft ODBC Tracing and then get in touch with the TimesTen ODBC driver support, they should be able to tell you just what is not supported in the driver. 如果您在应用程序和ODBC数据源中都具有正确的位大小,请打开Microsoft ODBC跟踪 ,然后与TimesTen ODBC驱动程序支持联系,他们应该能够告诉您驱动程序中不支持的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM