Database_Connection_JTDS

HI,
This is karthikeyan. I am using this driver(net.sourceforge.jtds.jdbc.Driver) for my ms sql server2000 database and
the connection string I used is ("jdbc:jtds:sqlserver://localhost:8080/kkk;user=win;password=win");
My CLASSPATH IS = .;C:\Program Files\Java\jdk1.5.0\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\karthi\WEB-INF\lib
JAVA_HOME IS = C:\Program Files\Java\jdk1.5.0
MY java PATH = C:\Program Files\Java\jdk1.5.0\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
Here I kept my library files i.e jdbc driver (jtds-1.2.jar)
C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\karthi\WEB-INF\lib
When I run my java program I am getting the following error.
java.sql.SQLException: Network error IOException: Connection refused: connect
Any help would be appreciated.
Regards
karthikeyan.R

hai ,
Thanks for your solution. I made the changes in the path the error is corrected but I got new error as "I/O Error: DB server closed connection" . For the new error I found the solution as to change my Server Name to the my sql server name and the port number as 1433. in the connection string i.e (jdbc:jtds:sqlserver://KINGS:1433/karthi;user=win;password=win). But I received the same error after I made the above changes.
I also tried adding the "ssl=request" in url properties. The same error is raising.
Send me solution as soon as possible.
regards
karthikeyan.

Similar Messages

Maybe you are looking for

  • How do I back up my iphoto library on one external harddrive to another?

    I have successfully created one external hard drive back up from iphoto library. I am trying to back up this first hard drive with an additional hard drive, so my iphoto library is saved in two external hard drive locations. As of right now every tim

  • Windows Installer package error when installing itunes.

    How can I reinstall Apple Software (Update) on my PC which is necessary to reinstall itunes? Also when I've tried to reinstall itunes I'm constantly told there is a problem with the Windows Installer.  Are there any suggestions?  Thank you for any he

  • AirPort Utility Software Update 2009-002 Causing Wireless issues?

    I've tried to search for this but the only search box I can find is the one on the main title bar and that doesn't seem to work well for the discussions forums, am I just missing it? But anyway, that's not my real question. Since the last batch of up

  • Protect PDF files with a password

    Hi everyone, Do you know if there's a way to protect PDF documents with a password? I don't mean those apps (e.g. Google Reader) that let you password-protect your files just while you're using/viewing them on the iPad, I'd like an app that if you wa

  • Create recovery cds for HP Pavilion a410n

    I had to reload PC from startup with f12 key. it reloaded the drive like new. I was going to make pc recovery cds in case HD crashed. CD Creator said there had already been a set made. I have not made a set since reloading HD. My daughter may have ma