SQL2008,修改本机登陆密码之后,就无法用windows验证模式登录同域中的数据库服务器,提示错误:无法生成sspi上下文,请问各位大侠该如何解决,非常感谢。

解决方案 »

  1.   

    kerberos 验证失败。
    看看你启动SQL Server database engine的服务帐号是什么。
    把他改成local system试试
      

  2.   

    把SQL Server error log 贴出来看看
      

  3.   

    ===================================无法连接到 10.10.10.1,1433。===================================无法生成 SSPI 上下文。 (.Net SqlClient Data Provider)------------------------------
    有关帮助信息,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=0&LinkId=20476------------------------------
    服务器名称: 10.10.10.1,1433
    错误号: 0
    严重性: 11
    状态: 0
    过程: GenClientContext
    ------------------------------
    程序位置:   在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       在 System.Data.SqlClient.TdsParser.SSPIError(String error, String procedure)
       在 System.Data.SqlClient.TdsParser.SNISSPIData(Byte[] receivedBuff, UInt32 receivedLength, Byte[] sendBuff, UInt32& sendLength)
       在 System.Data.SqlClient.TdsParser.TdsLogin(SqlLogin rec)
       在 System.Data.SqlClient.SqlInternalConnectionTds.Login(Int64 timerExpire, String newPassword)
       在 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
       在 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
       在 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
       在 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
       在 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
       在 System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
       在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       在 System.Data.SqlClient.SqlConnection.Open()
       在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
       在 Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()重启没有效果。
      

  4.   

    我说的error log是在C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\Log路径下的errolog用记事本打开的内容,你贴的这个看不出来的。