java.sql.SQLException: Error establishing socket

jdbc连接sql server2000异常: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.

原因:由于开发环境是Win 2003 Server/xp ,故SQL 2000需要补丁包,不然在2k3下,SQL默认关闭了TCP连接.

解决办法:安装sp4补丁

sp4下载地址: http://www.microsoft.com/downloads/details.aspx?FamilyID=8e2dfc8d-c20e-4446-99a9-b7f0213f8bc5&DisplayLang=zh-cn

安装步骤:下载SQL2000.AS-KB884525-SP4-x86-CHS.EXE,安装后点击setup安装

你可能感兴趣的:(java,sql,SQL Server,socket,XP)