sql-server – 连接到SQL Server的间歇性问题
发布时间:2020-12-12 16:49:47 所属栏目:MsSql教程 来源:网络整理
导读:我们每天都会收到几次以下错误: 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
我们每天都会收到几次以下错误:
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”重现问题 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |