---
title: "Connection Pooling in .Net"  
description: "Connection pooling enables an application to use a connection from a pool of connections that do not need to be re-established for each use. Once a co"  
author: "Amit Singh"  
published: 2010-12-02  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/67/connection-pooling-in-dot-net  
category: ".net"  
tags: [".net"]  
reading_time: 1 minute  

---

# Connection Pooling in .Net

[Connection pooling](https://www.mindstick.com/articles/804/connection-pooling-in-ado-dot-net) enables an [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) to use a connection from a pool of connections that do not need to be re-established for each use. Once a connection has been created and placed in a [connection pool](https://answers.mindstick.com/qa/30542/what-is-a-connection-pool), an application can reuse that connection without performing the complete connection creation process.\

By default, the connection pool is created when the first connection with a unique [connection string](https://www.mindstick.com/articles/328/connection-strings) connects to the database. The pool is populated with connections up to the minimum pool size. Additional connections can be added until the pool reaches the maximum pool size.

When a [user request](https://www.mindstick.com/forum/161059/how-to-get-user-metadata-from-user-request-on-api) a connection, it is returned from the pool rather than establishing new connection and, when a user releases a connection, it is returned to the pool rather than being released. But be sure than [your connections](https://answers.mindstick.com/qa/96424/how-do-you-see-all-your-connections-on-linkedin) use the same connection string each time. Here is the Syntax

\

##### Syntax:

con.ConnectionString = "[integrated Security](https://www.mindstick.com/forum/159040/what-is-the-difference-between-integrated-security-true-and-integrated-security-sspi)=SSPI; SERVER=192.168.4.221; DATABASE=dbAmit; Min Pool Size=4;Max Pool Size=45;Connect Timeout=16;";

where con is [sqlconnection](https://www.mindstick.com/forum/1209/sqlconnection-sqlcommand-sqldatareader-idisposable) object

---

Original Source: https://www.mindstick.com/blog/67/connection-pooling-in-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
