请帮忙分析一下这个错误,JSP连接SQL SERVER2000时发生的!

lye lye 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
try{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
}catch(ClassNotFoundException ce){
System.out.println("Class driver not found.");
}

String url="jdbc:microsoft:sqlserver://192.168.0.88:1433;DatabaseName=Northwind";
String user="";
String password="";

try{
Connection con=DriverManager.getConnection(url,user,password);
System.out.println("数据库操作成功,恭喜你");
con.close();
}catch(SQLException ee){
System.out.println("连接数据库失败:"+ee);
}

连接数据库失败:java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServ
er]Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connec
tion.
...全文

相关推荐

评论 10
收藏 已收藏
分享
返回顶部
lye
Web 开发 81,108 成员 341,721 内容