-
Swevlet
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
-
Re: Swevlet
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.