(provider: TCP 提供程序, error: 0 - 远程主机强迫关闭了一个现有的连接。)

博客提到遇到TCP提供程序报错,远程主机强迫关闭现有连接的问题。通过将连接设置修改为添加“pooling=false”,成功解决了该问题,为信息技术领域网络连接问题提供了解决思路。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

(provider: TCP 提供程序, error: 0 - 远程主机强迫关闭了一个现有的连接。)

       后来修改为:

       "server= server ;database=database ;uid= uid  ;pwd= pwd;pooling=false  ";

       加了pooling=false  这个设置,就解决OK了!

=================================== 连接到“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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值