Connection Pooling

Posted on 2004-11-10
Last Modified: 2008-03-06
This may be a question more suited for an ADO.NET category but someone out there has got to know.

We have an application which currently uses MTS and COM+ to facilitate connection pooling amoung our client applications.  We want to move away from COM and more towards .NET development and we are looking at re-writing the back end (Data Access End) as a .NET Web Service (or a collection of webservices).

If we use one web service and place all our web methods in the service we should be taking advantage of ADO.NET connection pooling.  Right?  How about if we have multiple services?  Whatt about multiple services wrapped inside the same project so that they are in the same assembly?

I guess it would realy depend on where the pooling was taking place, at the SQL server level, or at the application level.  For example, if I have ApplicationA that access a database with the same user name and password as ApplicationB, are the connections pooled even though they are comming from different applications?

Thanks for any insight into connection pooling and web services,
Question by:RealMrTea
    LVL 3

    Accepted Solution

    Hi Eric,

    Connection pooling in ADO.Net is made to allow you to, even if you want, develop, say one method by web service, and still use the power of connection pooling.

    Pooling is available at the application Level, not just at the class or requesdt level.

    If you have two web services in a single application, they will automatically share the same pool if they use the same connection string.

    Just think about closing your SqlConnection objects just after using them.

    Check : for more info.

    LVL 7

    Author Comment

    Whoops...Sorry for the delay.  This project kind of got put on the back burrner and I wanted to see if any one else had any ideas.

    My thanks and appologies kiwi,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    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

    15 Experts available now in Live!

    Get 1:1 Help Now