国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > SQL Server > 正文

解析SQL Server 2000 SP4與數據鏈接池問題

2024-08-31 00:46:26
字體:
來源:轉載
供稿:網友

今天遠程連接一臺xp sp2上的SQL,報錯信息如下:

以下為引用的內容:
  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.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
  Exception Details: System.InvalidOperationException: 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.
  Source Error:
  Line 2503: cmd.CommandType = CommandType.StoredProcedure;
  Line 2504:
  Line 2505: connection.Open();
  Line 2506: SqlCommandBuilder.DeriveParameters(cmd);
  Line 2507: connection.Close();

但是,我的連接字符串中已經設置了,最大鏈接池=200,應該是不可能全部被占用的。

當把鏈接池設置去掉,就報:

以下為引用的內容:
  An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
  Exception Details: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
  Source Error:
  Line 2503: cmd.CommandType = CommandType.StoredProcedure;
  Line 2504:
  Line 2505: connection.Open();
  Line 2506: SqlCommandBuilder.DeriveParameters(cmd);
  Line 2507: connection.Close();

這下子,問題就明朗了,典型的沒有打 Sql2000 sp4 的問題,打上sp4問題解決,差點被誤導。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 高邑县| 钦州市| 台江县| 阜南县| 嘉禾县| 宜丰县| 夏河县| 阳山县| 福建省| 金乡县| 阳新县| 罗定市| 长寿区| 内江市| 沾化县| 全南县| 巴林右旗| 南丰县| 凤山县| 济南市| 泉州市| 永清县| 东明县| 吉首市| 昆明市| 伽师县| 定襄县| 武义县| 潜山县| 蒙阴县| 车险| 榆社县| 新竹县| 保山市| 宁海县| 石阡县| 伊通| 新津县| 巧家县| 饶平县| 长汀县|