Hi All,
I am trying to connect to MS SQL 2008 server using jtds.
Class.forName("net.sourceforge.jtds.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:jtds:sqlserver://localhost:1433/tempdb","sa","");
MSSQL server is running.
But i am getting
java.sql.SQLException: Network error IOException: Connection refused: connect
I am stuck with this error for one whole day
. I want to do some Hibernate and
JDBC conection trials too.
Can anyone suggest the root cause?
Note: CLASSPATH variable is set with jtds.jar