Problemas con sqlServer2000
Publicado por alejandro (4 intervenciones) el 17/10/2009 17:11:54
Estoy tratando de conectarme a sqlserver 2000 mediante jdts
con este codigo
Class.forName("net.sourceforge.jtds.jdbc.Driver");
//Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String url = "jdbc:jtds:sqlserver://Localhost:1433/Gestion";
String user = "oei";
String passw = "oeixj07";
Connection con = DriverManager.getConnection(url,user,passw);
System.out.println("good");
} catch (SQLException e) {
System.out.println("SQL Exception: "+ e.toString());
} catch (ClassNotFoundException cE) {
System.out.println("Class Not Found Exception: "+ cE.toString());
}
pero me sale este error:
Network error IOException: Connection refused: connect
no se si se podrian ayudar
con este codigo
Class.forName("net.sourceforge.jtds.jdbc.Driver");
//Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String url = "jdbc:jtds:sqlserver://Localhost:1433/Gestion";
String user = "oei";
String passw = "oeixj07";
Connection con = DriverManager.getConnection(url,user,passw);
System.out.println("good");
} catch (SQLException e) {
System.out.println("SQL Exception: "+ e.toString());
} catch (ClassNotFoundException cE) {
System.out.println("Class Not Found Exception: "+ cE.toString());
}
pero me sale este error:
Network error IOException: Connection refused: connect
no se si se podrian ayudar
Valora esta pregunta


0