连接到 SQL Server 2005 数据库引擎的本地实例时突然遇到问题。几天前,我连接到此实例没有问题。但是,我可以连接到集成服务和分析服务。只有数据库引擎给我这个错误:
A connection was successfully established with the server,
but then an error occurred during the pre-login handshake.
(provider: SSL Provider, error: 0 -
The Local Security Authority cannot be contacted) (Microsoft SQL Server)
我唯一做的就是安装了Visual Studio 2017。
这是一个通用错误,有很多原因。通常是密码过期之类的东西。若要进行故障排除,应启用 Netlogon 服务日志记录,请按照为 Netlogon 服务启用调试日志记录:
c:>Nltest /DBFlag:2080FFFF
然后重现您的问题,然后查看日志文件,该文件将位于 %windir%debugnetlogon.log
.阅读文件,尝试了解正在发生的事情。
之后不要忘记关闭调试日志记录:
c:>Nltest /DBFlag:0