|
-
Feb 3rd, 2009, 06:01 PM
#1
Re: [2005] Connection pool Maximum reached?
Don't leave the connection open in the Load event handler. Open it, use it and close it. That's the way ADO.NET is designed to be used. Create a new connection each time you need one. Connection pooling keeps things efficient.
-
Feb 21st, 2009, 02:20 PM
#2
Re: [2005] Connection pool Maximum reached?
 Originally Posted by jmcilhinney
Don't leave the connection open in the Load event handler. Open it, use it and close it. That's the way ADO.NET is designed to be used. Create a new connection each time you need one. Connection pooling keeps things efficient.
To sum it up: Open late, close early.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|