Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection Pooling

Status
Not open for further replies.

RamHardikar

Programmer
Feb 16, 2001
109
GB
Could someone point me to an example which shows implemention of connection pooling
 
When I say - OleDbConnection cn = new OleDbConnection();

Does provider create a connection pool internally?
 
Does provider create a connection pool internally?
Maybe. It depends on the underlying provider. The OleDb series of methods are just a passthrough to a database vendor-provided library. There are other considerations, such as whether you're running in COM+/EnterpriseServices, if the connection string is identical, and whether you're using integrated security.

You can include the min pool size and max pool size parameters in your connection string, and that might give ADO.NET a hint that you want to use pooling.

Probably the best thing to do is open and close several connections, and monitor from the database side using your DB admin tools to see if they immediately close, or close after a few minutes.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
RamHardikar,
According to Appdev's Mary Chipman "One of the author for Ado.net Traning
Ado.NET Training If you use the Same Connection the Provider will keep the connection as is and will not create a new connection

as chip mentioned above, you can test it yourself and monitor the connection pool


Good luck



What would you attempt to accomplish if you knew you would not fail?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top