Connection pooling

G

Guest

Hi
we have Windows Applcation with sql server 2000.i want to enable connection
pooling in database for best perfomance.
i added connection string in app.config this

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="basicConnect"
value="server=10.150.142.178;database=OMTOOLSDB;Trusted_Connection=true;Pooling=true;Max Pool Size=100;Min Pool Size=0"/>
</appSettings>
</configuration>



after adding this also i was not finding any difference in performance

how can i check performance after enabiling pooling
 
P

Patrice

Pooling is already enabled by default.

A test could be to create/dispose a connection in a loop. If you then
*disable* pooling it should be much more slower to execute the same loop....

Patrice

--

TreeView Custom said:
Hi
we have Windows Applcation with sql server 2000.i want to enable connection
pooling in database for best perfomance.
i added connection string in app.config this

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="basicConnect"
value="server=10.150.142.178;database=OMTOOLSDB;Trusted_Connection=true;Pool
ing=true;Max Pool Size=100;Min Pool Size=0"/>
 
G

Guest

If it is oledb then it is a default what about sqlconnection is it default or
we need to specify in connection string??
 
M

Miha Markic [MVP C#]

Hi,

Are you opening connection right before operation and closing it immediately
after?
Also, on single threaded applications there will be no difference.
 
P

Patrice

This is always the default. You have to tell when you want to disable
pooling...

Doing the loop described previously should easily convince you...

Patrice

--
 

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