Link to home
Start Free TrialLog in
Avatar of turbot_yu
turbot_yuFlag for Singapore

asked on

How to use ADODB connect to DB2

Hi Experts,

I am in a VBA(iFix) program.
I need to use ADODB to connect to DB2 database.

The sample code is below.
But I need to change from 'sql server' to 'DB2', since now I am using DB2 database.
May I know how to do it?

Thanks and Regards,

Turbot


 conODBC.Open "driver= _
    & " SQL server};server=thunder;uid=sa;pwd=;database=master"
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of turbot_yu

ASKER

still not work, I donot need tcp.
Do you have the correct odbc-drivers ? What version of mdac do you have ?
where to find the mdac,
I can link to db2 by other method in same pc