
May 19th, 2006, 10:49 AM
|
|
Registered User
|
|
Join Date: May 2006
Posts: 1
Time spent in forums: 12 m 45 sec
Reputation Power: 0
|
|
|
ERROR [HY000] [Microsoft][ODBC DB2 Driver] Internal Error
Hello  .
I want to make an ODBC Connection to DB2. I develop a simple Windows Console Project:
OdbcConnection odbcConn = new OdbcConnection("DSN=***;UID=***;PWD=***");
try
{
odbcConn.Open();
}
catch(OdbcException e)
{
Console.WriteLine(e.StackTrace);
}
I try to open the connection and everything wents ok. I repeat the same simple code but using it on a Web Service and the following 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
Can someone explain me why the same connection that I can open using a Windows Console App raise that error when used on a Web Service?
Thanks in advance
|