CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Swevlet

  1. #1
    Guest

    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"jdbcdbc:MPRDB","tstmgr", "pass");

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

    Help me

    -Kaushik


  2. #2
    Join Date
    Oct 1999
    Posts
    4

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured