在 ADRMS、RMS 安装过程中,或者后台 SQL 数据库迁移过程中,你可能遇到连不上 SQL 数据库的情况。可能在事件日志中看到如下报错:
Log Name: Application
Source: AdRmsLoggingService
Date: XXXXX
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: XXXXX
Description:
Service cannot be started. System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at...
Event Xml:
遇到类似的问题,请首先检查一下 RMS 服务运行账号是否已经拥有了 SQL 数据库本机/DB 管理员的权限。
如果 RMS 连 SQL 使用的是 CNAME, 尝试下列步骤(需要重启服务器):
在 SQL 服务器上添加下列注册表键值:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
DWORD:DisableLoopbackCheck
Value:1
在 SQL 服务器和 RMS/ADRMS 服务器上添加下列注册表键值:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters
DWORD: DisableStrictNameChecking
Value: 1
微软安全支持专家
James Yi
本文介绍了在ADRMS、RMS安装或SQL数据库迁移过程中遇到无法连接到SQL数据库的问题及其解决方案。文章提供了具体的错误日志信息,并指导如何通过修改SQL服务器及RMS服务器上的注册表键值来解决该问题。
1589

被折叠的 条评论
为什么被折叠?



