Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003

    Unanswered: connecting to database

    Hi everybody

    I was trying to connect to datatbase on my computer, through java. I understand that I will need to download JDBC driver for that. But i am not sure which driver will I need, and where do i need to put it. Do I have to make some changes in CLASSPATH as well?

    I am using SQL 2000. My jdk profile is j2sdk1.4.2.01. Also what is subname in


    is it the name of database or what???

    In need of help !!!!!!

    thanks in advance

  2. #2
    Join Date
    Oct 2003
    The jdbc drive should be in the classpath and added to your project (depends on your environment).

    I believe that the subname is the database (could be its ip), with subprotocol being the driver, for db2 its db2, not sure thought for sql 2000.

    Are you creating a standalone java application and appled or jsp ?

Posting Permissions

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