dbTalk Databases Forums  

sqlclient: existing connection was forcibly closed

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss sqlclient: existing connection was forcibly closed in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
=?Utf-8?B?cGI=?=
 
Posts: n/a

Default sqlclient: existing connection was forcibly closed - 06-20-2007 , 10:54 AM







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(SqlExc eption 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.




Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: sqlclient: existing connection was forcibly closed - 06-20-2007 , 12:38 PM






Some associated links:
http://forums.microsoft.com/TechNet/...4053&SiteID=17

http://channel9.msdn.com/ShowPost.aspx?PostID=239593


This is what someone else who had this issue did:
Quote:
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 (AT) newsgroups (DOT) nospam> wrote

Quote:
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(SqlExc eption 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.






Reply With Quote
  #3  
Old   
=?Utf-8?B?T21hciBBd3dhZA==?=
 
Posts: n/a

Default Re: sqlclient: existing connection was forcibly closed - 06-20-2007 , 12:54 PM



Hi,

May be this can help also

http://blogs.msdn.com/sql_protocols/...eShooting.aspx

Thanks
Omar

"Andrew J. Kelly" wrote:

Quote:
Some associated links:
http://forums.microsoft.com/TechNet/...4053&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 (AT) newsgroups (DOT) nospam> wrote in message
news:1CF8C7D3-F472-46CF-8F8F-467545DA869F (AT) microsoft (DOT) com...

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(SqlExc eption 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.







Reply With Quote
  #4  
Old   
=?Utf-8?B?cGI=?=
 
Posts: n/a

Default Re: sqlclient: existing connection was forcibly closed - 06-20-2007 , 12:58 PM



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:

Quote:
Some associated links:
http://forums.microsoft.com/TechNet/...4053&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 (AT) newsgroups (DOT) nospam> wrote in message
news:1CF8C7D3-F472-46CF-8F8F-467545DA869F (AT) microsoft (DOT) com...

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(SqlExc eption 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.







Reply With Quote
  #5  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: sqlclient: existing connection was forcibly closed - 06-20-2007 , 03:18 PM



Yes generally the applications on the same box will use shared memory when
they can and if you have a lot of activity here it may be the issue.

--
Andrew J. Kelly SQL MVP

"pb" <pb (AT) newsgroups (DOT) nospam> wrote

Quote:
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/...4053&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 (AT) newsgroups (DOT) nospam> wrote in message
news:1CF8C7D3-F472-46CF-8F8F-467545DA869F (AT) microsoft (DOT) com...

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(SqlExc eption 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.









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.