java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
求解决方法!
到底是什么出错了!
ublic class db {
private String dbDriver="com.microsoft.jdbc.sqlserver.SQLServerDriver";
private String sConnStr = "jdbc:microsoft:sqlserver://localhost:1433;databasename=webcar"; //webcar
public Connection connect = null;
public ResultSet rs=null;
public db() {
try {
Class.forName(dbDriver);
connect = DriverManager.getConnection(sConnStr,"sa","sa");
System.out.println("webcar 数据库连接");
}
catch (Exception ex) {
System.out.println("12121");
ex.printStackTrace();
}
}
------解决方案--------------------
Error establishing socket的解决方法
------解决方案--------------------
试试可以不:http://wenku.baidu.com/link?url=vx3NcLDOCk_eFTZltggydzR_nGh2Gnd842yn45jogXdFAhOFEmgXrOMY1vfASzgyS-iqExhhJxUGVTQpS8dsWvIDLzmHcT6IwbVb-O-JIKu