Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is the concept of connection pooling? How it works?
A connection string is as follows:
XML
<connectionStrings>
        <add name="videogames" connectionString="Data Source=1.1.1.1;Initial Catalog=DbVideogames;User ID=sa;Password=321;Min Pool Size=5;Max Pool Size=20;" providerName="System.Data.SqlClient"/>
    </connectionStrings>

So suppose 1000 users throught the world attempts to make connections to a website(Lets say Amazon) at the same time we can have only 20 connections in pool so do the site crash? Does max. pool size= 20 means at the same time only 20 users will be able to connect to website and make transactions? Can anyone please elaborate the concept.? Thanx ..
Posted

Take a read here[^] MSDN explains it pretty well.
 
Share this answer
 
Comments
Thanks7872 19-Aug-13 1:49am    
Very good link. ↑voted.
Rakshith Kumar 12-Nov-13 4:56am    
Good one 5+ :)
Refer the link provided by Ron Beyer and also these ones

ADO.NET Connection Pooling at a Glance[^]

Connection Pooling in ASP.NET[^]

Regards..:)
 
Share this answer
 
Read this article

ADO-NET-101-SQL-Connection
 
Share this answer
 
There can be maximum 32767 connections to the database at a time that is at a single point of time only 32767 users can make transactions to database via web app. Not even a single one more than that. A pool size is not mentioned anywhere(I have invested 2 days in researching it) only default is there(100). But Sequel server will only accept 32767 simultaneous connections from user. Proof: Select @@MAX_CONNECTIONS . If misunderstood please correct me. Thanx...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900