Results 1 to 3 of 3

Thread: JDBC problem

  1. #1
    peiceonly is offline Member
    Join Date
    Mar 2007
    Posts
    41
    Rep Power
    0

    Default JDBC problem

    This is what I have , I dont think posting 3 -4 classes will make you all more confused.
    I have a class to create connections to the database and returns a thread , then this is used to query to database.
    Now the issue is when I try to query the DB the connection string is not exact,seems there is some mistake somewhere.
    I think my approach is wrong . Should I send my code ?

  2. #2
    goldhouse is offline Senior Member
    Join Date
    Mar 2007
    Posts
    134
    Rep Power
    0

    Default

    I think there is definitly resource sharing here , Use another class or variable name if the DB s different

  3. #3
    henry_78 is offline Member
    Join Date
    Aug 2007
    Posts
    47
    Rep Power
    0

    Default

    Hi,
    I think the problem is in the connection.
    There could be many couses:
    1)The driver is not correct
    2)username and password.
    3)Loading the driver..
    There are more things to test...will be better if u write us the code that u use to make the connection.

Similar Threads

  1. Jdbc problem
    By abhiN in forum JDBC
    Replies: 1
    Last Post: 03-21-2008, 05:10 AM
  2. JDBC select problem
    By abhiN in forum JDBC
    Replies: 0
    Last Post: 03-12-2008, 08:09 AM
  3. Problem in Servlet with JDBC
    By *New Programer* in forum Java Servlet
    Replies: 2
    Last Post: 12-20-2007, 09:15 AM
  4. JDBC problem
    By Swamipsn in forum New To Java
    Replies: 1
    Last Post: 08-13-2007, 06:05 PM
  5. JDBC Driver problem
    By Swamipsn in forum New To Java
    Replies: 3
    Last Post: 08-09-2007, 03:55 PM

Posting Permissions

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