Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 asp.net c# 项目和 sql server 2008r2 和 ado.net 中,我添加并增加了连接字符串中的 maxpoolsize 属性,我的超时问题已得到修复,但我完全阅读了这篇MSDN 文章 ,但没有关于增加副作用的参考。
为了比较这些情况增加和减少最大池大小,我正在使用sql server中的这个存储过程测试我的查询。
如果有打开且可用的连接,连接池提供您可以再次使用它们。所以它提高了性能。
对数据库进程使用 Sql 存储过程。这是性能和安全性的最佳方式!但不要忘记关闭连接 =)