XP系统里大家应该都碰到在eclipse里用jdbc连接数据库时报错的问题吧 错误信息: 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.(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) 呵呵 其实很简单的 只要安装个sqlserver 2000 sp3 就行了 复制这个地址也可以下载:http://download.microsoft.com/download/d/d/e/dde427eb-0296-4eac-a47c-d11a66b03816/chs_sql2ksp3.exe (微软官方地址) 下载后运行chs_sql2ksp3.exe把安装程序(默认)释放到C:\sql2ksp3, 然后在运行sql2ksp3文件夹里面的stuep.bat,根据提示完成安装即可。 安装完成提示重新启动后,连接SQLServer 2000数据库正常。