We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Connection Pooling

Medium Priority
Last Modified: 2013-11-07
We've been having some SQL Server connection issues and one of our Active Directory admins suggested using connection pooling (we get a lot of timeout expired errors when connecting to any SQL Server 2005, we have 4).  I'm a programmer, and my .Net applications use this by default with ADO.Net (I've ran tests to verify this).  However, we also have ODBC reports that are run on an application server, and I believe they're pooling but I don't know for sure.  Also, I've checked the open connections on the server via both a netstat and running an sp_who2 query and I haven't seen an extraordinary amount of connections open.

1.)  Is there anything that needs to be done on the server to enable connection pooling?
2.)  Do the microsoft ODBC drivers behave like the ADO drivers and enable pooling by default (if not, can they be enabled/how)?
Watch Question

Faiga DiegelSr Database Engineer

Check your SQL Query wait. right click on the server instance >> Properties >> Advanced.
Check the Query Wait value.
Faiga DiegelSr Database Engineer

From a asp.net web application all you need to do is modify your web.config connection string and add "Min Pool Size,Max Pool Size & Connect Timeout" values.


Hope this help.

conn.ConnectionString = "integrated security=SSPI;SERVER=YOUR_SERVER;DATABASE=YOUR_DB_NAME;Min Pool Size=5;Max Pool Size=60;Connect Timeout=2;";

Open in new window

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


I'm going to accept jabcoco's answer... though it didn't exactly answer my question, he did link to an article that had a link in it that had the information I needed.  I'm going to include the verbiage from the part that helped me for posterity (this explains how connection pooling behaves with ODBC):
Connection Pooling for Odbc
Connection pooling for the .NET Framework Data Provider for ODBC is managed by the ODBC Driver Manager that is used for the connection, and is not affected by the .NET Framework Data Provider for ODBC.
To enable or disable connection pooling, open ODBC Data Source Administrator in the Administrative Tools folder of Control Panel. The Connection Pooling tab allows you to specify connection pooling parameters for each ODBC driver installed. Note that connection pooling changes for a specific ODBC driver affect all applications that use that ODBC driver.  
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.