Results 1 to 4 of 4
  1. #1
    shancay08 is offline Member
    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Default jdbc odbc problem

    Hi, I hope someone can help me urgently. I am encountering a problem with my jdbc odbc driver code.

    String dbase = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Users/RaquelC/Documents/patientInfo.mdb;DriverID=22;READONLY=true}";

    I am using 2003 MS Access as my database and whenever I'm debugging the prog this is what it says.

    "Errorjava.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1."

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default Re: jdbc odbc problem

    And where is that exception thrown from?
    What code is causing it?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    shancay08 is offline Member
    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Default Re: jdbc odbc problem

    I really don't know.. I am very new in java

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default Re: jdbc odbc problem

    Somewhere in your code you are catching an exception and only logging the name of the exception and not doing printStackTrace().

    Since we cannot see your code here there's not much else to say.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. JDBC ODBC SQLException
    By JohnPringle83 in forum JDBC
    Replies: 6
    Last Post: 05-30-2011, 08:07 AM
  2. jdbc-odbc cannot connect
    By ArneBassez in forum JDBC
    Replies: 4
    Last Post: 12-08-2010, 05:26 AM
  3. Replies: 1
    Last Post: 07-23-2010, 09:23 AM
  4. Help me this error in JDBC-ODBC connection
    By lordelf in forum Java Servlet
    Replies: 3
    Last Post: 04-04-2009, 08:37 AM
  5. Using JDBC-ODBC bridge
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-06-2008, 09:21 AM

Posting Permissions

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