当前位置: 代码迷 >> Java Web开发 >> [求助]tomcat 4.1连接sql server 2000 出错!!
  详细解决方案

[求助]tomcat 4.1连接sql server 2000 出错!!

热度:407   发布时间:2005-09-06 09:09:00.0
[求助]tomcat 4.1连接sql server 2000 出错!!

500 Servlet Exception

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]用户
'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。
	at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
	at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
	at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(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 _testsqlserver__jsp._jspService(/myjsp/testsqlserver.jsp:10)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
	at com.caucho.jsp.Page.subservice(Page.java:506)
	at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
	at com.caucho.server.http.Invocation.service(Invocation.java:315)
	at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)
	at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170)
	at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
	at java.lang.Thread.run(Thread.java:534)

Resin 2.1.16 (built Tue Feb 15 11:12:27 PST 2005) 我在使用tomcat 4.1 连接sql server 2000数据库时出错, 请各位大虾帮忙!!!
搜索更多相关主题的帖子: tomcat  sql  server  

----------------解决方案--------------------------------------------------------
你虽然连上了数据库,但是不能正确登陆。
可能问题是:
1 sa密码错误,用别的帐户试试
2 sql设置没有启用数据库帐户连接,在sql设置里改或用Windows帐户
----------------解决方案--------------------------------------------------------
请问斑竹如何设置sa密码,如何在sql中进行设置?
----------------解决方案--------------------------------------------------------
  相关解决方案