Troubleshooting: SQL Server连接错误解决方法列表

SQL Server连接错误解决方法列表[@more@]

1. Connection Forcibly Closed

This error may occur when connecting to SQL Server using TCP/IP.
Error message:A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

Related cause and solution:

(1). SynAttackProtect
SQL Server Database Engine running on Windows Server 2003 Service Pack 1 and later, Windows may drop connections if the requests arrive faster than SQL Server can service them. This is a security feature of Windows Server 2003 Service Pack 1 and later, which implements a finite queue for incoming TCP connection requests.
http://technet.microsoft.com/en-us/library/ms187005.aspx

(2) windows SNP feature, include TCP Chimney Offload, RSS and TCPA
http://support.microsoft.com/kb/942861/en
http://kitesky.itpub.net/post/909/512660

How to fix

(1). Edit registry
(2). Command

netsh int tcp show globalshows the offload setting in the OS.

netsh int tcp set global chimney=enabledenables the offload.

2. Transport-level Error When Querying DatabaseErrorMessage:A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)

Related cause and solution:The error is being caused by a timeout exception for long running queries. In previous versions of Visual Studio .NET, the exception was properly represented as a exception with a timeout description.
Set the commandtimeout property of the command object to an appropriate value. Use a value of zero to wait without an exception being thrown.
http://support.microsoft.com/kb/555938

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/66009/viewspace-1045199/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/66009/viewspace-1045199/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值