What is maximum allowable value of “Max Pool Size” in sql connection string

旧城冷巷雨未停 提交于 2019-12-19 05:16:52

问题


What is the maximum allowable value of "Max Pool Size" in a connection string?

Suppose this is my connection string in app.config

<add name="Name" 
     providerName="System.Data.SqlClient" 
     connectionString="Data Source=ServerName;Network Library=DBMSSOCN;Initial Catalog=DatabaseName;user=UserName;password=Password;Max Pool Size=1024;Pooling=true;"/>

What is the maximum value I can use instead of 1024? Remember it is maximum value, not default value.


回答1:


There is no documented limit on Max Pool Size. There is however an exact documented limit on maximum number of concurrent connections to a single SQL Server (32767 per instance, see http://msdn.microsoft.com/en-us/library/ms143432(v=SQL.90).aspx).

A single ADO.NET pool can only go to a single instance, so maximum effective limit is therefore 32767.




回答2:


As far as I know - 32767 This is the limit of Sql Server, not .NET




回答3:


You may check with DBA connection limit set in database server



来源:https://stackoverflow.com/questions/8602380/what-is-maximum-allowable-value-of-max-pool-size-in-sql-connection-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!