See com.borland.dx.dataset.DataSetException error code: BASE+66 com.borland.dx.dataset.DataSetException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. at com.borland.dx.dataset.DataSetException.a(Unknown Source) at com.borland.dx.dataset.DataSetException.throwException(Unknown Source) at com.borland.dx.dataset.DataSetException.SQLException(Unknown Source) at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source) at com.borland.jdbcx.metadata.DatabaseInfo.openConnection(Unknown Source) at com.borland.jdbcx.metadata.e.run(Unknown Source) Chained exception: 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(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:171) at com.borland.dx.sql.dataset.Database.openConnection(Unknown Source) at com.borland.jdbcx.metadata.DatabaseInfo.openConnection(Unknown Source) at com.borland.jdbcx.metadata.e.run(Unknown Source) 是什么原因啊? |
|
20分 |
把你连接数据库的完整的url贴出来
|
忘了说了我是winxp+sql2000+JBuilderx. JDBC For SqlServer2000,连接是按照正常的连接步骤来完成的。在Win2000里面是没有问题的。
|
|
要在winxp下连接sqlserver数据库的话,请把sql2000的sp3打包。去百度搜找一下sp3的安装.
|
|
楼上的正解。xp 升了sp2以后就会出现这个问题。
|
|
代码贴出来!
|
|
打SP3补丁就搞定,我前两天刚遇到这个问题,就是这么解决地,嘿嘿
|
|
打补丁
|
|
打过补丁了。
|
|
up
|