码迷,mamicode.com
首页 > 数据库 > 详细

SQLSERVER: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.

时间:2020-04-08 12:00:50      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:inf   查询   最大   and   security   his   where   spro   select   

1、Max Pool Size 默认为100。

2、查看当前数据库连接数量,

select * from sysprocesses where dbid= db_id(‘数据库名称‘)

结果为190,

3、添加数据库查询的最大连接数量

Data Source=.;Initial Catalog=i_Master;Persist Security Info=True;User ID=NUser;Password=N2;max pool size=500
设置最大连接数量 500

SQLSERVER: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.

标签:inf   查询   最大   and   security   his   where   spro   select   

原文地址:https://www.cnblogs.com/topguntopgun/p/12658785.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!