2010年8月29日

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

摘要: 遇到这种错误信息, 一般是自己忘记了关闭SqlConnection所致, 也叫SQL Connection Leak. 下面的代码说明了这个问题.在关闭SQL Connection之前从函数中退出(return), 或者程序出现了exception, 而SQL Connection还没有关闭, 都可以导致这个错误的发生.如何监控SQL Connection Leak?==============... 阅读全文

posted @ 2010-08-29 18:56 中道学友 阅读(9930) 评论(0) 推荐(0) 编辑

导航

技术追求准确,态度积极向上