x

How to increase the connection pool size in Sql Server 2008?

Please advise me on how to increase the connection pool size in Sql Server 2008? The answer is urgently required as it is a matter concerning production server.

more ▼

asked Oct 21, 2009 at 11:32 AM in Default

Venkat gravatar image

Venkat
1 1 1 1

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

This is quite a good article discussing connection pooling:

http://www.pythian.com/news/1270/sql-server-understanding-and-controlling-connection-pooling-fragmentation

Perhaps if you give some more details as to what your problem is, and why you think that increasing the size of the pool will help, someone here might be able to guide you better.

more ▼

answered Oct 21, 2009 at 11:37 AM

Melvyn Harbour 1 gravatar image

Melvyn Harbour 1 ♦♦
1.4k 18 20 22

We have a request from the client to increase the connection pool size to > 40 as it will avoid opening connections again and again and reuse the connections for a particular set of jobs. I also went throught the article which you mentioned, but it does not give the steps to be followed for connection pooling. Can u please help me on that?
Oct 21, 2009 at 11:48 AM Venkat
The default maximum size of the connection pool is 100, so if you're not able to take advantage of these, there's a different problem to the size of the connection pool. Assuming you are using a .NET application to connect to the database, you modify the maximum size of the connection pool by specifying it within the connection string. See the following MSDN reference: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring.aspx
Oct 21, 2009 at 12:31 PM Melvyn Harbour 1 ♦♦
is the connection pool applicable only to .net applications. we are just creating SSIS packages and scheduling them using jobs. I have the foll. queries: 1) Where to view the connection pool size in SQl server 2008? 2) How to increase the connection pool size in SQL server 2008?
Oct 22, 2009 at 02:55 AM Venkat
Yes, connection pooling is a feature of ADO.NET (the data access mechanism within .NET. It means that .NET keeps the connection around, but in the background, so that multiple connections with the same connection string can use the same connection. So there is no real answer to your question - the changes all need to be made at the client end, not on the database.
Oct 22, 2009 at 05:48 AM Melvyn Harbour 1 ♦♦
(comments are locked)
10|1200 characters needed characters left

ADO.NET Connection pooling page: http://msdn.microsoft.com/en-us/library/8xx3tyca.aspx

Also check your server max connections setting on SQL Server, this will reset it...

sp_configure 'user connections', 0
go
reconfigure with override

Hope it helps.

more ▼

answered Oct 21, 2009 at 03:06 PM

Gustavo gravatar image

Gustavo
592 4 4 7

Where do I view the connection pool size in SQL server 2008?
Oct 22, 2009 at 02:56 AM Venkat
Connection pool is something you stabilish on your connection provider ( ODBC, OLEDB, ADO.NET etc ). SQL Server can limit the amount of user connections, running: " sp_configure 'user connections' " should return the name, minimum, maximum, config_value, run_value of your DB Settings.
Oct 22, 2009 at 10:30 AM Gustavo
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x1850
x9

asked: Oct 21, 2009 at 11:32 AM

Seen: 51464 times

Last Updated: Oct 21, 2009 at 12:31 PM