connection pooling in .net

Posted on 2006-06-01
Last Modified: 2010-04-16
I was looking into using connection pooling for SqlConnections, and came across the following:

am I reading this correctly in that the .net framework will *automatically* create a connection pool for you?  This seems like a silly question, but I really was not expecting this to be the default behaviour.
Question by:ARACK04
    1 Comment
    LVL 9

    Accepted Solution

    yep it's true, if the connection strings are the same then once the pool is started other sqlconnections can use it.  Of course you might more control over  it so you put a pool size in you connect string.  

    If you use system monitor and put a counter on sql connections you can see it in action, but it will open a couple coonections before reusing others.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Suggested Solutions

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now