sql server connection pooling

G

Green

Hi,
I has a web application which execute lots of query and store procedure
from the sql server 2000. I want to have a central controlled connection
pool so as to all the connection will get the connection from this pool and
return to this pool. How can i do this. Is there any article recommended?

Appreciate in advance!
 
J

Jon Skeet [C# MVP]

Green said:
I has a web application which execute lots of query and store procedure
from the sql server 2000. I want to have a central controlled connection
pool so as to all the connection will get the connection from this pool and
return to this pool. How can i do this. Is there any article recommended?

You don't need to do anything special in your own code - just create
new instances of SqlConnection and call Dispose as soon as you've
finished with them (the using statement is handy here) - the data
provider will do appropriate pooling.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top