Click to See Complete Forum and Search --> : Swevlet


September 23rd, 1999, 01:45 PM
I am trying to connect to database using JdbcOdbc driver in the init mathod of a Servlet. I have tested the connection writting a test java code. Connection is ok. But while executing Servlet it gives error:

SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
===================================

con = DriverManager.getConnection"jdbc:odbc:MPRDB","tstmgr", "pass");

==================================

Help me

-Kaushik

Bhanu Erraguntla
October 7th, 1999, 02:59 PM
U are using JDBC-Odbc to connect, right ? Did you create the profile for the database profile 'MPRDB' on the webserver
(where you put yor servlets) ? That is what the error message says. Asssuming that u r using NT, create and try again.