Provider:SSL Provider,error:0-等待的操作过时

解决SSMS2012连接数据库失败问题
本文介绍了一种解决SQL Server Management Studio 2012(SSMS2012)在连接数据库时出现“provider:SSLProvider,error:0-等待的操作过时”错误的方法。通过卸载特定软件并使用netsh winsock reset命令,可以恢复正常连接。

       今天一同事使用SSMS 2012 连接数据库时,遇到了“provider:SSL Provider,error:0-等待的操作过时”,搜索了一下,遇到一哥

们也遇到这个问题:SQLServer 2012 已成功与服务器建立连接,但是在登录前的握手期间发生错误。 (provider: SSL Provider, error: 0 - 等待的操作过时。

       在cmd命令窗口输入netsh WinSock Show Catalog ,找到0x20000或者0x66  flag的provider。后面发现是淘淘搜导致(如下图所示)。卸载了该软件后,以管理员身份运行netsh winsock reset,重启系统即可解决问题。

 

Winsock是Windows网络编程接口 netsh winsock reset 是把它恢复到默认状态

Winsock LSP全称Windows Socket Layered Service Provider(分层服务提供商),它是Windows底层网络Socker通信需要经过的大门。一些流氓软件可以把自已加进去,就可以截取、访问、修改网络的数据包,可以随意添加广告,还能获取你的浏览习惯.

=================================== 连接到“LAPTOP-JSJLJ8DO\SQL”时出错。 =================================== 无法连接到服务器 LAPTOP-JSJLJ8DO\SQL。 (Microsoft.SqlServer.ConnectionInfo) ------------------------------ 程序位置: 在 Microsoft.SqlServer.Management.Common.ConnectionManager.Connect() 在 Microsoft.SqlServer.Management.Common.ConnectionManager.PoolConnect() 在 Microsoft.SqlServer.Management.Common.ConnectionManager.GetServerInformation() 在 Microsoft.SqlServer.Management.Common.ConnectionManager.get_DatabaseEngineType() 在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.SharedConnectionUtil.GetConnectionKeyName(SqlOlapConnectionInfoBase ci) 在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ConnectionCache.AddConnection(UIConnectionInfo connection) 在 Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ConnectToServer(UIConnectionInfo connectionInfo, IDbConnection liveConnection, Boolean validateConnection) =================================== A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - 远程主机强迫关闭了一个现有的连接。) (Framework Microsoft SqlClient Data Provider) ------------------------------ 有关帮助信息,请单击: https://docs.microsoft.com/sql/relational-databases/errors-events/mssqlserver-10054-database-engine-error ------------------------------ 服务器名称: LAPTOP-JSJLJ8DO\SQL 错误号: 10054 严重性: 20 状态: 0 ------------------------------ 程序位置: 在 Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) 在 Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) 在 Microsoft.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) 在 Microsoft.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync() 在 Microsoft.Data.Sql
最新发布
05-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值