Re: sqlclient: existing connection was forcibly closed
- From: pb <pb@xxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Jun 2007 10:58:01 -0700
I saw that post regarding flipping off Shared Memory. I tried it and it
seems to work.
I wonder:
-does Microsoft know about this?
and
-Why aren't more people seeing it?
The box that runs my SQL Server instance also runs a series of processes
that access the db, these processes might automatically use the shared memory
model vs. TCP (although I am not changing the connectstr, I still specify
TCP). Perhaps my situation is more stressful than others causing this bug to
appear.
"Andrew J. Kelly" wrote:
Some associated links:.
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=134053&SiteID=17
http://channel9.msdn.com/ShowPost.aspx?PostID=239593
This is what someone else who had this issue did:
I went into the Sql Server Configuration Manager, Sql Native Client
Configuration -> Protocols and disabled Shared Memory and made the TCP/IP
protocol #1 in order. Then just restarted the Sql Service and it all
started
working!
<<
--
Andrew J. Kelly SQL MVP
"pb" <pb@xxxxxxxxxxxxxxxxx> wrote in message
news:1CF8C7D3-F472-46CF-8F8F-467545DA869F@xxxxxxxxxxxxxxxx
i just made the switch from OLEDB to SqlClient in my .Net apps.
now with SqlClient often my db calls throw the following exception:
System.Data.SqlClient.SqlException: 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.) at
System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
Boolean
breakConnection) at...
this happens when the load (or call rate) increases. I don't think its
anything I am doing unless I am missing a connect option.
my production environment is:
client side
Windows Server 2003 sp2
.net 2.0
server side
Windows Server 2003 sp2
Sql Server 2005 sp2
Also, on my development machine running Vista, it does not appear that
this
happens.
- Follow-Ups:
- Re: sqlclient: existing connection was forcibly closed
- From: Andrew J. Kelly
- Re: sqlclient: existing connection was forcibly closed
- References:
- Re: sqlclient: existing connection was forcibly closed
- From: Andrew J. Kelly
- Re: sqlclient: existing connection was forcibly closed
- Prev by Date: Re: sqlclient: existing connection was forcibly closed
- Next by Date: SQL Server client components - What is this?
- Previous by thread: Re: sqlclient: existing connection was forcibly closed
- Next by thread: Re: sqlclient: existing connection was forcibly closed
- Index(es):
Relevant Pages
|