1. 程式人生 > >JDBC連線SQLsever2008出現錯誤,求解決

JDBC連線SQLsever2008出現錯誤,求解決

資料庫驅動成功 com.microsoft.sqlserver.jdbc.SQLServerException: 使用者 ‘ss’ 登入失敗。 ClientConnectionId:c4cc688f-67bb-444f-af4a-63c6785898d9 資料庫連線錯誤 at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:258) at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:256) at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:108) at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:4290) at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3157) at com.microsoft.sqlserver.jdbc.SQLServerConnection.access100(SQLServerConnection.java:82)atcom.microsoft.sqlserver.jdbc.SQLServerConnection 100(SQLServerConnection.java:82) at com.microsoft.sqlserver.jdbc.SQLServerConnection100(SQLServerConnection.java:82)atcom.microsoft.sqlserver.jdbc.SQLServerConnectionLogonCommand.doExecute(SQLServerConnection.java:3121) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7151) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2478) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:2026) at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1687) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1528) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:866) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:569) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at lianjiesql.javasql.main(javasql.java:20)