How to connect to a Data Base?

Error: data source name not found or no default data source name specified?

  • i got this error when i am trying to connect the data base to the web page using the tomcat server.i tried a lot but i did not got the reason for this reason.i had created a dsn already. But it shows this error

  • Answer:

    I was same getting the same problem because I made user dsn instead of System dsn. try to make system dsn it will work make sure u r using the correct systax to connect the db. 1- Class.forName("sun.jdbc.odbc.JdbcOdbcDri… 2-Connection con = DriverManager.getConnection("jdbc:odbc:d… But the better solution is to use type 4 driver and connect to datasource directly using vendor supplied driver.

venkatesh p at Yahoo! Answers Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.