In connection string to SQL Server there is max pool size option. My question is where is this connection pool managed and maintained – on .net side or on server side?
In connection string to SQL Server there is max pool size option. My question
Share
Pool is maintained on the client side. So every client will create physical and logical connections. Physical connection is expensive to create, logical is not. User code directly works with logical connections using
***Connection(for exampleSqlConnection) classes. So when you dispose a connection you actually return a physical connection to a pool.On the other side it is also possible to configure max allowed connections on the server side, thus server can make a crude load-balancing by denying some connections.