连接超时已过期:SQL Server 2014
Connection Timeout Expired: on SQL Server 2014
我正在尝试使用本地 SSMS 连接数据库服务器。
但它抛出以下错误:
Cannot connect to Server
Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=4574; handshake=10433; (Microsoft SQL Server, Error: -2)
The wait operation timed out
服务器信息:
- SQL Server 2014 standard with SP1 on Windows Server 2008 R2 sp1.
- Windows 防火墙未启用。
- TCP/IP 也已启用。
安装oracle客户端软件后出现此问题。
我们需要重新启动 windows 服务器吗?
我执行了以下步骤并且对我有用
重新启动 WMI 服务:
- 开始 > 运行 > 输入 services.msc 并按 Enter 向下滚动到
Windows Management Instrumentation,右击,重启
重新启动 Windows 服务器
我能够在 SQL 端口 (https://blogs.msdn.microsoft.com/docast/2018/10/11/connection-timeout-and-command-timeout-in-sql-server/) 上远程登录 SQL 服务器。所以我只是用它的实际 IP 地址替换了服务器名称,它对我有用。相同的解决方案在 visual studio(Web.config - 连接字符串)中工作以访问应用程序中的数据库。
我正在尝试使用本地 SSMS 连接数据库服务器。
但它抛出以下错误:
Cannot connect to Server
Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=4574; handshake=10433; (Microsoft SQL Server, Error: -2)
The wait operation timed out
服务器信息:
- SQL Server 2014 standard with SP1 on Windows Server 2008 R2 sp1.
- Windows 防火墙未启用。
- TCP/IP 也已启用。
安装oracle客户端软件后出现此问题。 我们需要重新启动 windows 服务器吗?
我执行了以下步骤并且对我有用
重新启动 WMI 服务:
- 开始 > 运行 > 输入 services.msc 并按 Enter 向下滚动到 Windows Management Instrumentation,右击,重启
重新启动 Windows 服务器
我能够在 SQL 端口 (https://blogs.msdn.microsoft.com/docast/2018/10/11/connection-timeout-and-command-timeout-in-sql-server/) 上远程登录 SQL 服务器。所以我只是用它的实际 IP 地址替换了服务器名称,它对我有用。相同的解决方案在 visual studio(Web.config - 连接字符串)中工作以访问应用程序中的数据库。