日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

解析SQL Server 2000 SP4與數(shù)據(jù)鏈接池問題_Mssql數(shù)據(jù)庫教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!

推薦:解析SQL Server 2008對T-SQL語言的增強
Microsoft SQL Server 2008 對 T-SQL 語言進行了進一步增強。為了讓開發(fā)人員盡快了解這些變化,我們針對 2007 年 6 月 CTP 版本的 SQL Server 2008 中的 T-SQL 語言的新增功能進行

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

以下為引用的內(nèi)容:
  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è)置去掉,就報:

以下為引用的內(nèi)容:
  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)。

分享:解讀SQL Server數(shù)據(jù)庫備份的方法
SQL Server數(shù)據(jù)庫備份有兩種方式,一種是使用BACKUP DATABASE將數(shù)據(jù)庫文件備份出去,另外一種就是直接拷貝數(shù)據(jù)庫文件mdf和日志文件ldf的方式。下面將主要討論一下后者的備份與恢復(fù)。

來源:模板無憂//所屬分類:Mssql數(shù)據(jù)庫教程/更新時間:2009-08-02
相關(guān)Mssql數(shù)據(jù)庫教程