首页上一页 1 下一页尾页 6 条记录 1/1页
java里面的数据库连接问题,
发表在Java图书答疑
2008-10-14
是否精华
是
否
版块置顶:
是
否
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at file.TestSelect.selectAll(TestSelect.java:104)
at file.TestSelect.main(TestSelect.java:151)
这问题是在12章里面的TestSelect.java和14章里面的当点击login(登陆)时候的连接问题。我装了sql2000sp4和sp3的补丁,也装了sql2000的jdbc的驱动,也配置了环境,但是就是没用,希望版主帮忙解决,谢谢
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at file.TestSelect.selectAll(TestSelect.java:104)
at file.TestSelect.main(TestSelect.java:151)
这问题是在12章里面的TestSelect.java和14章里面的当点击login(登陆)时候的连接问题。我装了sql2000sp4和sp3的补丁,也装了sql2000的jdbc的驱动,也配置了环境,但是就是没用,希望版主帮忙解决,谢谢