问题描述
连接字符串中Max Pool Size"的最大允许值是多少?
What is the maximum allowable value of "Max Pool Size" in a connection string?
假设这是我在 app.config 中的连接字符串
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;"/>
我可以使用的最大值是多少而不是 1024?请记住它是最大值,而不是默认值.
What is the maximum value I can use instead of 1024? Remember it is maximum value, not default value.
推荐答案
最大池大小没有记录限制.但是,对于单个 SQL Server 的最大并发连接数有一个确切的记录限制(每个实例 32767,请参阅 http://msdn.microsoft.com/en-us/library/ms143432(v=SQL.90).aspx).
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).
单个 ADO.NET 池只能转到单个实例,因此最大有效限制为 32767.
A single ADO.NET pool can only go to a single instance, so maximum effective limit is therefore 32767.
这篇关于“Max Pool Size"的最大允许值是多少?在 sql 连接字符串中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!