A
Antuan Kinnard
Hi All,
Question #1:
I am attempting to write a connection pool on an SQL Server that doesn't
seem to work, according to Profiler and Performance Monitor using 'User
Connections' counter(not the buggy '.NET CLR Data' counter). I would
like for there to be 10 connections established at the beginning(hence
Min Pool Size=10), however that doesn't seem to be happening. When
using Profiler and Performance Monitor, it shows that I only get 1
connection for every time I open a connection. I thought that the first
time I open the connection, it should open 10 connections. Can someone
explain why it's not creating those 10 connections the first time I open
the connection using the following connection string?
Connection string: "Database=myDatabase;Server=myServer;Max Pool
Size=100;Min Pool Size=10;Integrated Security=False"
Question #2:
Everytime I close one of these connections, it opens another one. Why
is that?
Question #1:
I am attempting to write a connection pool on an SQL Server that doesn't
seem to work, according to Profiler and Performance Monitor using 'User
Connections' counter(not the buggy '.NET CLR Data' counter). I would
like for there to be 10 connections established at the beginning(hence
Min Pool Size=10), however that doesn't seem to be happening. When
using Profiler and Performance Monitor, it shows that I only get 1
connection for every time I open a connection. I thought that the first
time I open the connection, it should open 10 connections. Can someone
explain why it's not creating those 10 connections the first time I open
the connection using the following connection string?
Connection string: "Database=myDatabase;Server=myServer;Max Pool
Size=100;Min Pool Size=10;Integrated Security=False"
Question #2:
Everytime I close one of these connections, it opens another one. Why
is that?