知识大全 SQL Server 2000 SP4与数据链接池问题

Posted

篇首语:曾无好事来相访,赖尔高文一起予。本文由小常识网(cha138.com)小编为大家整理,主要介绍了知识大全 SQL Server 2000 SP4与数据链接池问题相关的知识,希望对你有一定的参考价值。

SQL Server 2000 SP4与数据链接池问题  以下文字资料是由(全榜网网www.cha138.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!

  今天远程连接一台xp sp 上的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 : cmd CommandType = CommandType StoredProcedure;

  Line :

  Line : connection Open();

  Line : SqlCommandBuilder DeriveParameters(cmd);

  Line : connection Close();

  但是 我的连接字符串中已经设置了 最大链接池= 应该是不可能全部被占用的

  当把链接池设置去掉 就报

  An error has occurred while establishing a connection to the server When connecting to SQL Server 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: 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 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: Could not open a connection to SQL Server)

  Source Error:

  Line : cmd CommandType = CommandType StoredProcedure;

  Line :

  Line : connection Open();

  Line : SqlCommandBuilder DeriveParameters(cmd);

  Line : connection Close();

cha138/Article/program/SQLServer/201311/22376

相关参考