Re: SQL 2005 orphaned connections
- From: "Andrew Teece" <enate@xxxxxxxxxxxxx>
- Date: Thu, 17 Apr 2008 11:06:23 +0100
Charles,
The "Keep Alive" property is mentioned in the SQL BOL twice. Once under "SQL Server Configuration Manager Help --> SQL Server 2005 Network Configuration -->TCP/IP Properties (Protocols Tab)" and once under "SQL Server Configuration Manager Help --> SQL Native Client Configuration --> Client Protocols (SQL Server Configuration Manager) --> Client Protocols - TCP/IP Properties (Protocols Tab)".
It would suggest to me that the "keep alive" setting for the Server Network Configuration relates to how often the server pings the client. The definition was only added in SP1 (noted in the Change History). Also, the "Windows TCP Implementation Features" article on MSDN (http://msdn2.microsoft.com/en-us/library/ms819735.aspx) states that an application could request "keep alive" reqests to be sent on a particular connection without having them enabled on all TCP/IP connections. This would certinly be preferable as we do not know what impact enabling "keep alive" requests on all connections of all applications would be (especially the DTC and MSMQ).
Also, the KB article you refer to is for SQL 2000. SQL 2000 had no mention of "Keep Alive" requests built into the application. Why would this become something that is included in SQL 2005 settings/documentation if it still was not a feature?
Sorry to keep bothering you, but I still think this is a feature that isn't working correctly in our environment rahter than a feature that doesnt exist.
Andrew
"Charles Wang[MSFT]" <changliw@xxxxxxxxxxxxxxxxxxxx> wrote in message news:GcwxNt8nIHA.8872@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi Andrew,
Thank you for your response.
They should not conflict with each other. The KB article is for server
side, while the document you saw in BOL should be for client side. In SQL
Server 2005 BOL, it describes Keep Alive under TCP/IP protocol as the
following:
"Keep Alive
This parameter (in milliseconds) controls how often TCP attempts to verify
that an idle connection is still intact by sending a KEEPALIVE packet. The
default is 30000 milliseconds.".
As you can see it does not mention that SQL Server will send keep-alive
packet, instead SQL Server 2005 depends on the underlying TCP layer to send
keep-alive packages. This is related to working with underlying network
driver. I am not sure how SQL Server implements it since it is
undocumented. According to the KB article, I think that it may still rely
on Windows OS communicating with the underlying networking driver. Compared
with SQL Server 2000, SQL Server 2005 just provides an user interface so
that any user can configure this parameter according to his requirement. As
far as I know that keep alive is naturally implemented in TCP/IP protocol
since TCP/IP is connection oriented. There must be connection retrying
mechanism.
The Keep Alive Interval you saw is for client protocol and only used in SQL
Native Client. This is not at server side. Since SQL Native Client is a
driver program, it may be able to directly manipulate TCP protocol at
driver level.
If you have any other questions or concerns, please feel free to let me
know. It is my pleasure to be of assistance.
Best regards,
Charles Wang
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
.
- Follow-Ups:
- Re: SQL 2005 orphaned connections
- From: Charles Wang[MSFT]
- Re: SQL 2005 orphaned connections
- References:
- SQL 2005 orphaned connections
- From: Andrew Teece
- RE: SQL 2005 orphaned connections
- From: Charles Wang[MSFT]
- Re: SQL 2005 orphaned connections
- From: Andrew Teece
- Re: SQL 2005 orphaned connections
- From: Charles Wang[MSFT]
- SQL 2005 orphaned connections
- Prev by Date: RE: SQL Server 2005 - Server Browser Service
- Next by Date: Re: SQL 2005 orphaned connections
- Previous by thread: Re: SQL 2005 orphaned connections
- Next by thread: Re: SQL 2005 orphaned connections
- Index(es):
Relevant Pages
|