sql-server – 连接到SQL Server的间歇性问题

前端之家收集整理的这篇文章主要介绍了sql-server – 连接到SQL Server的间歇性问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我们每天都会收到几次以下错误
A network-related or instance-specific error occurred while establishing a connection to sql Server. The server was not found or was not accessible. Verify that the instance name is correct and that sql Server is configured to allow remote connections. (provider: TCP Provider,error: 0 - The requested name is valid,but no data of the requested type was found.).

在进行一些研究时,似乎这是将主机名解析为IP地址的错误.让我感到困惑的是,每次都不会发生这个问题.有没有人见过这个问题?提前致谢.

解决方法

当我遇到类似的间歇性问题时,我发现我有一个DNS搜索后缀列表,其中包含一些过期的域名,导致DNS查询运行超过30秒.由于服务器缓存DNS名称大约20分钟,因此无法使用ping重现问题,因为使用了缓存的DNS条目.

使用“IPCONFIG / ALL”检查搜索后缀列表,尝试使用已清除的DNS缓存“IPCONFIG / FLUSHDNS”重现问题

原文链接:https://www.f2er.com/mssql/80827.html

猜你在找的MsSQL相关文章