G
Guest
Hi,
I have a problem connecting to Oracle using and ODBC connection in a ASP.Net
web page.
The TNS Names works fine because when I create a DSN it works, and it works
in SQL Plus.
Here are the error I get depending on the connection string:
Using the right server (Oracle 9i), and the Native Oracle Driver
Driver={Oracle in OraHome92};Server=MyServer;Uid=MyUser;Pwd=MyPW;
or
Driver={Microsoft ODBC for Oracle};Server=MyServer;Uid=MyUser;Pwd=MyPW;
[Oracle]ORA-12154: TNS:could not resolve service name
[Microsoft][ODBC Driver Manager] The driver doesn't support the version of
ODBC behavior that the application requested (see SQLSetEnvAttr).
Using an other server (Oracle 8i), and the Microsoft ODBC driver
Driver={Oracle in OraHome92};Server=Server2;Uid=MyUser;Pwd=MyPW;
or
Driver={Microsoft ODBC for Oracle};Server=Server2;Uid=MyUser;Pwd=MyPW;
[Ora]ORA-12560: TNS
rotocol adapter error
[IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
[Microsoft][ODBC driver for Oracle][Oracle]ORA-00928: missing SELECT keyword
Thanks,
Ben.
I have a problem connecting to Oracle using and ODBC connection in a ASP.Net
web page.
The TNS Names works fine because when I create a DSN it works, and it works
in SQL Plus.
Here are the error I get depending on the connection string:
Using the right server (Oracle 9i), and the Native Oracle Driver
Driver={Oracle in OraHome92};Server=MyServer;Uid=MyUser;Pwd=MyPW;
or
Driver={Microsoft ODBC for Oracle};Server=MyServer;Uid=MyUser;Pwd=MyPW;
[Oracle]ORA-12154: TNS:could not resolve service name
[Microsoft][ODBC Driver Manager] The driver doesn't support the version of
ODBC behavior that the application requested (see SQLSetEnvAttr).
Using an other server (Oracle 8i), and the Microsoft ODBC driver
Driver={Oracle in OraHome92};Server=Server2;Uid=MyUser;Pwd=MyPW;
or
Driver={Microsoft ODBC for Oracle};Server=Server2;Uid=MyUser;Pwd=MyPW;
[Ora]ORA-12560: TNS
[IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
[Microsoft][ODBC driver for Oracle][Oracle]ORA-00928: missing SELECT keyword
Thanks,
Ben.