File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes JTDS jdbc  driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JTDS jdbc  driver" Watch "JTDS jdbc  driver" New topic

JTDS jdbc driver

Venkatesh Kumar
Ranch Hand

Joined: Aug 08, 2003
Posts: 68
Hi All:

I am getting the following exception when I run a simple jdbc pgm which is appended below.the exception is

ava.sql.SQLException: Network error IOException: Connection refused: connectat et.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>( net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(

has anyone faced such an issue ,any help is appreciated.


[edited to add code tags]
[ December 09, 2004: Message edited by: Jeanne Boyarsky ]
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Assuming you username and password are correct that looks OK. Check your connection parameters - make sure your servername is correct and your database name is correct too.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Bruno Pedroso

Joined: Aug 30, 2013
Posts: 1

You need to import the drive to yout build path. Have you ever tried it?
Don't get me started about those stupid light bulbs.
subject: JTDS jdbc driver
Similar Threads
SQL Server 2000 JDBC Driver Error active Connections issue...
GWT with database connection
SQL Server 2008r2 Connection Failed
no active Connection...jdbc newbie