123qweasdzc
Programmer
I want to open a ODBCConnection to a DB2 database. I develop a simple code in a Windows Console application:
Class1.odbcConn = new OdbcConnection("DSN=*;UID=*;PWD=*");
try
{
odbcConn.Open();
}
catch(OdbcException e)
{
Console.WriteLine(e.StackTrace);
}
The connection opens without problems. But when I use the same code in a web service, the follwing expection error is raised:
Message "ERROR [HY000] [Microsoft][ODBC DB2 Driver] Internal Error. Contact Microsoft Product Support (e:\source\babylon\data\odin\clients\phoenix\driver\connection.cpp:720).
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [HY000] [Microsoft][ODBC DB2 Driver] Internal Error. Contact Microsoft Product Support (e:\source\babylon\data\odin\clients\phoenix\driver\connection.cpp:720)." string
Any clues? Thanks in advance .
Class1.odbcConn = new OdbcConnection("DSN=*;UID=*;PWD=*");
try
{
odbcConn.Open();
}
catch(OdbcException e)
{
Console.WriteLine(e.StackTrace);
}
The connection opens without problems. But when I use the same code in a web service, the follwing expection error is raised:
Message "ERROR [HY000] [Microsoft][ODBC DB2 Driver] Internal Error. Contact Microsoft Product Support (e:\source\babylon\data\odin\clients\phoenix\driver\connection.cpp:720).
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [HY000] [Microsoft][ODBC DB2 Driver] Internal Error. Contact Microsoft Product Support (e:\source\babylon\data\odin\clients\phoenix\driver\connection.cpp:720)." string
Any clues? Thanks in advance .