将DB2 32位客户机与64个应用程序连接 [英] Connect DB2 32 bits client with a 64 application
问题描述
亲爱的朋友
我快要疯了.我无法连接IBM DB2 32位客户端,但尝试使用OBDC,OLE和本机dll,但没有成功.
我会更好地解释:
-客户端应为32位,因此所有驱动程序均为32位,因为ERP系统仅以32位运行
-我正在开发64位Autodesk Inventor(CAD)应用程序
-当我尝试连接数据库时,发生一些错误:
1)OLE:未注册IBMDADB2提供程序(我认为系统拒绝此dll注册)
2)ODBC:64位驱动程序未正确安装
3)本机DB2 dll:系统拒绝此访问权限
我能做些什么?我正在使用Visual Basic语言
我会非常感谢您的任何建议
谢谢
Dear Friend
I´m near to be crazy. I´m not able to connect the IBM DB2 32 bits client, I tried by OBDC, OLE and native dll, but without succes.
I´ll explain better:
- The client shall be 32 bits, so all driver are 32 bits, because the ERP system run only in a 32 bits
- I´m developing an application to Autodesk Inventor (CAD) that is 64 bits
- When I am trying to connect the database, some errors occurr:
1) OLE: the IBMDADB2 provider isn´t registerd (I think that the system reject this dll registration)
2) ODBC: the 64 bits driver isn´t correctly instaled
3) Native DB2 dll: the system reject this access
What can I do? I´m using the Visual Basic language
I´ll be very thankfull for any suggestion
Thanks
推荐答案
您不能在64位应用程序中使用32位数据库驱动程序.为什么?因为您不能在同一过程中混合使用32位和64位代码.
您要么必须为数据库安装和使用64位驱动程序(不可能通过您的描述),要么进入Visual Studio中的项目属性,然后在编译"选项卡上,单击高级"按钮,然后将目标"类型从AnyCPU更改为x86.
You cannot use 32-bit database drivers in a 64-bit application. Why? Because you cannot mix 32 and 64-bit code in the same process.
You either have to install and use 64-bit drivers for your database (not likely by your description) or go into your project properties in Visual Studio and on the Compile tab, click the Advanced button and change the Target type from AnyCPU to x86.
这篇关于将DB2 32位客户机与64个应用程序连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!