J
John A Grandy
My understanding of ADO.NET connection pooling as it relates to Sql Server
is that once a connection is created and opened, behind the scenes ADO.NET
adds this connection to a pool of connections with identical connection
strings. If a connection is closed in code this does not necessarily mean
that the connection is closed in the pool. Connections in the pool stay
open based on some other set of parameters which I don't remember much about
(neither the exact config settings, nor where the config settings are
stored).
I do remember that connections in the pool are gradually dropped off
(perhaps down to a lower threshold) due to lack of use ... however , the key
point is that in a highly scalable app such as a web app , opening a
connection in code does not necessarily incur the total overhead. On
opening a SqlConnection that has a connection string identical to an
available connection in the pool with an identical connection string, the
overhead is extremely low.
Is the above generally true ? If so, where are the connection pooling
config settings stored ? And how have things changed between SS2K and SS05
?
is that once a connection is created and opened, behind the scenes ADO.NET
adds this connection to a pool of connections with identical connection
strings. If a connection is closed in code this does not necessarily mean
that the connection is closed in the pool. Connections in the pool stay
open based on some other set of parameters which I don't remember much about
(neither the exact config settings, nor where the config settings are
stored).
I do remember that connections in the pool are gradually dropped off
(perhaps down to a lower threshold) due to lack of use ... however , the key
point is that in a highly scalable app such as a web app , opening a
connection in code does not necessarily incur the total overhead. On
opening a SqlConnection that has a connection string identical to an
available connection in the pool with an identical connection string, the
overhead is extremely low.
Is the above generally true ? If so, where are the connection pooling
config settings stored ? And how have things changed between SS2K and SS05
?