What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 15723 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ADO.NET Interview Questions > What is Maximum Pool Size in ADO.NET Con ...

What is Maximum Pool Size in ADO.NET Connection String ?

Interview question and answer by: Bharathi Cherukuri | Posted on: 5/22/2012 | Category: ADO.NET Interview questions | Views: 3870 | | Points: 40


Answer:

Maximum pool size decides the maximum number of connection objects to be pooled. If the maximum pool size is reached and there is no usable connection available the request is queued until connections are released back in to pool.
So it is always a good habit to either call the close or dispose method of the connection as soon as you have finished work with the connection object.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


 Responses

Posted by: Akiii | Posted on: 23 May 2012 12:47:51 AM | Points: 10 | Alert Moderator 

Good question @Bharathi.......

Is there any number like 50 or 100 ?


Thanks and Regards
Akiii

Posted by: Bharathi Cherukuri | Posted on: 23 May 2012 02:20:42 AM | Points: 10 | Alert Moderator 

Hi Akiii,

The default value of Max Pool size is 100. You can set it to a higher number also so far as performance of the server is not a issue.

A sample connection string for SQL Server:

DATA SOURCE=(LOCAL);Initial Catalog=w3mentorDB;User ID=root;Password=****;Max Pool SIZE=75;Min Pool SIZE=5;


Regards,
Bharathi

Posted by: Akiii | Posted on: 23 May 2012 02:42:01 AM | Points: 10 | Alert Moderator 

Excellent Bharathi.....

Thank you very much...
Regards
Akiii

>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Bharathi Cherukuri

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 6:52:16 PM