久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術(shù)文章
文章詳情頁

SQL Server 2000 sp4與數(shù)據(jù)鏈接池問題

瀏覽:174日期:2023-11-06 09:19:06

今天遠程連接一臺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();

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

當(dāng)把鏈接池設(shè)置去掉,就報:

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問題解決,差點被誤導(dǎo)。

主站蜘蛛池模板: 博湖县| 武鸣县| 无极县| 定襄县| 井陉县| 河间市| 时尚| 卢湾区| 古丈县| 高邑县| 类乌齐县| 岑巩县| 宜都市| 凌海市| 遂昌县| 长治市| 甘南县| 邵阳县| 永胜县| 广平县| 琼中| 连山| 霍山县| 松原市| 梓潼县| 久治县| 怀化市| 奈曼旗| 贵定县| 凌源市| 密山市| 蒙阴县| 鄂伦春自治旗| 孟州市| 克山县| 平谷区| 东乌| 仁布县| 东乡县| 沽源县| 武鸣县|