简体   繁体   English

从.NET SQL连接最大?

[英]SQL Connections Max from .NET?

Using .NET running in an Azure cloud service, with a process with many SQL Server connection strings (SQL authentication, not Windows), what is the maximum number of connections that can be made to different databases? 使用运行在具有多个SQL Server连接字符串(SQL身份验证,而不是Windows)的进程的Azure云服务中的.NET,可以与不同数据库建立的最大连接数是多少?

I am putting together a system that needs to read/write to many MSSQL instances on different hosts at the same time and am looking to gather information/documentation on limits. 我正在建立一个系统,该系统需要同时读取/写入不同主机上的许多MSSQL实例,并希望收集有限的信息/文档。 This is not the same as multiple connections going to the same database, this is for example 40 strings (therefore 40 connection pools) to 40 different databases under different security contexts. 这与前往同一数据库的多个连接不同,例如,这是在不同安全性上下文下到40个不同数据库的40个字符串(因此为40个连接池)。

Thanks. 谢谢。

Maximum Capacity Specifications for SQL Server SQL Server的最大容量规格

User connections: 32767 用户连接:32767

You see also Maximum number of concurrent users connected to SQL Server 2008 您还会看到连接到SQL Server 2008的最大并发用户数

For you question (num max connections pools), I view the code of ADO.NET and I found that the pools are stored ( _poolCollection) in a ConcurrentDictionary then the number max of pool is the the number max of entry in the dictionary. 对于您的问题(最大连接池数),我查看了ADO.NET的代码 ,发现这些池(_poolCollection)存储在ConcurrentDictionary中,然后最大池数就是字典中条目的最大数。 In the documentation says 在文档中说

For very large ConcurrentDictionary objects, you can increase the maximum array size to 2 gigabytes (GB) on a 64-bit system by setting the configuration element to true in the run-time environment. 对于非常大的ConcurrentDictionary对象,可以通过在运行时环境中将配置元素设置为true来在64位系统上将最大数组大小增加到2 GB。

I think that there aren't real limits, depends on the machine 我认为没有真正的限制,取决于机器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM