Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900