G
Guest
Hi,
I'm working on a C# project and want to connect to a IBM DB2 database in
order to retrieve a DataSet. I'm using the ODBC driver. The code is the
following:
-----------------------------------------------------------------------------------
....
OdbcConnection odbcConn = new OdbcConnection("Driver={IBM DB2 ODBC
DRIVER};Server=localhost;DSN=TESTDB;UID=username;PWD=pwd;Protocol=TCPIP");
odbcConn.Open();
....
-----------------------------------------------------------------------------------
When I'm trying to open the connection I obtain the following message:
"ERROR [08001] [IBM][CLI Driver] CLI0104E Connexion à la source de données
impossible. SQLSTATE=08001
ERROR [IM006] [Microsoft][Gestionnaire de pilotes ODBC] Échec
SQLSetConnectAttr du pilote"
When I try to open the connection through the ODBC driver, I have no error,
it's just with the C# application.
If you have any idea, thanks to give me more information.
G.
I'm working on a C# project and want to connect to a IBM DB2 database in
order to retrieve a DataSet. I'm using the ODBC driver. The code is the
following:
-----------------------------------------------------------------------------------
....
OdbcConnection odbcConn = new OdbcConnection("Driver={IBM DB2 ODBC
DRIVER};Server=localhost;DSN=TESTDB;UID=username;PWD=pwd;Protocol=TCPIP");
odbcConn.Open();
....
-----------------------------------------------------------------------------------
When I'm trying to open the connection I obtain the following message:
"ERROR [08001] [IBM][CLI Driver] CLI0104E Connexion à la source de données
impossible. SQLSTATE=08001
ERROR [IM006] [Microsoft][Gestionnaire de pilotes ODBC] Échec
SQLSetConnectAttr du pilote"
When I try to open the connection through the ODBC driver, I have no error,
it's just with the C# application.
If you have any idea, thanks to give me more information.
G.