简体   繁体   English

有什么副作用SQL Server连接池

[英]what are side effects Connection Pooling with SQL Server

in asp.net c# project and sql server 2008r2 and ado.net i was added and increase maxpoolsize attribute in connection string and my time out issue hass been fixed but i read this MSDN article completely but there is no reference about side effect for increasing. 在asp.net c#项目和sql server 2008r2和ado.net中,我已添加并增加了连接字符串中的maxpoolsize属性,并且修复了我的超时问题,但是我完整阅读了此MSDN文章,但是没有关于增加副作用的参考。

for compare these situation increase and decrease max pool size i was testing my query with this stored procedure from sql server . 为了比较这些情况增加和减少最大池大小,我正在用sql server中的存储过程测试我的查询。

if there is open and usable connection, connection pool provides that you can use them again. 如果存在开放且可用的连接,则连接池提供您可以再次使用它们。 So it increases the performance. 因此,它提高了性能。

Use Sql Stored procedure for database process. 将Sql存储过程用于数据库进程。 It is the best way for performance and security! 这是性能和安全性的最佳方法! But Don't forget to close the connection =) 但不要忘记关闭连接=)

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

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