急求!!!急求!!!急求!!!急求!!!

05-05-24 yanyan2005
我现在要连接数据库

可是出现了这样的问题::

java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]用户

'(null)' 登录失败。原因: 未与信任 SQL Server 连接相关联。

at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)

at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)

at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3028)

at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)

at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)

at java.sql.DriverManager.getConnection(DriverManager.java:512)

at java.sql.DriverManager.getConnection(DriverManager.java:193)

at _transport._test._testmsssql__jsp._jspService(/transport/test/testMsssql.jsp:15)

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:246)

at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:164)

at com.caucho.server.TcpConnection.run(TcpConnection.java:139)

at java.lang.Thread.run(Thread.java:536)

数据库是microsoftsql2000

服务器是resin

我在网上找了好多资料,都没解决了

现在请各位高手帮忙,

请尽快回复我吧

我是在做毕业设计,要毕业了!!!!

kalparser
2005-05-25 03:04
you specified the username and password correctly?

yanyan2005
2005-05-25 09:19
我使用的是默认的username=sa,password=null

我检察了好几遍,还是这样

难道不是用sa,null吗?

kalparser
2005-05-25 09:33
Configure SQL Server to use Standard security. In SQL Enterprise Manager, right-click the Server, and then click SQL Server. Click the Security Options tab in the SQL Server Property dialog box. Click to select SQL Server and Windows under Authentication, and then click OK.

tjyzwz
2005-05-25 14:03
sa和空

不是null

should be ""

猜你喜欢
2Go 1 2 下一页