Topic: XP+MS SQL Server 2000个人版出错

  Print this page

1.XP+MS SQL Server 2000个人版出错 Copy to clipboard
Posted by: yeafee
Posted on: 2006-08-03 12:18

try {
Class.forName("net.sourceforge.jtds.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:jtds:sqlserver://127.0.0.1:1433/book","sa","sa");
//   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
//   conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=book","sa","sa");
System.out.println("连接成功");
} catch (ClassNotFoundException ex) {
System.out.println(ex.getMessage() + "驱动错误");
}
catch (SQLException ex) {
System.out.println(ex.getMessage() + "路径错误");
}


Xp2+M$ SQL 2000个人.无补丁+1.2的JTDS+Eclipse 3.1
Network error IOException: Connection refused: connect路径错误
关闭成功.

确定SQLServer 网络实用工具下启用协议包含TCP/IP.命名管道.
大家帮忙看看呀,必须要安装M$ SQL SP3a??

2.Re:XP+MS SQL Server 2000个人版出错 [Re: yeafee] Copy to clipboard
Posted by: solut
Posted on: 2006-10-24 16:18

安装个sp3的补丁 问题就可以解决了


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923