I just wonder after what duration .Net Sql Provider will close connection which is in pool?
Thanks, Pawel
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The documentation does not specify how long connections in the connection pool stay open. The optimizer decides, and its algorithm might change between versions of ADO.NET (or maybe even Windows Update patches.)
You can control the maximum lifetime through a connection string setting:
By default, it’s 0, which means a connection can live as long as the optimizer thinks it’s useful.