ODBC DB2 Connection Problem - TechRepublic
General discussion
May 14, 2002 at 02:16 AM
juliasalimi

ODBC DB2 Connection Problem

by juliasalimi . Updated 24 years, 1 month ago

I am trying to connect to datasource on DB2, Linux machine from NT. The program is written in C and compiled in Watcom.

I use “SQLDriverConnect” with “InConnectionString” egual to :

“DRIVER={IBM DB2 ODBC DRIVER};
SERVER=[server address];
network=dbmssocn;
address=[server address],[portnumber];
UID=[userid];
PWD=[password];
DATABASE=[dbname]”

But I get following error;

db=dbTest Err=99999 [IBM][CLI Driver] CLI0104E Unable to connect to data source. SQLSTATE=08001

I would appreciate any help.

Thanks
Julia

This discussion is locked

All Comments