解析SQL Server 2000 SP4與數(shù)據(jù)鏈接池問題_Mssql數(shù)據(jù)庫教程
教程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ù)。
相關(guān)Mssql數(shù)據(jù)庫教程:
- sql 語句練習(xí)與答案
- 深入C++ string.find()函數(shù)的用法總結(jié)
- SQL Server中刪除重復(fù)數(shù)據(jù)的幾個方法
- sql刪除重復(fù)數(shù)據(jù)的詳細方法
- SQL SERVER 2000安裝教程圖文詳解
- 使用sql server management studio 2008 無法查看數(shù)據(jù)庫,提示 無法為該請求檢索數(shù)據(jù) 錯誤916解決方法
- SQLServer日志清空語句(sql2000,sql2005,sql2008)
- Sql Server 2008完全卸載方法(其他版本類似)
- sql server 2008 不允許保存更改,您所做的更改要求刪除并重新創(chuàng)建以下表
- SQL Server 2008 清空刪除日志文件(瞬間日志變幾M)
- Win7系統(tǒng)安裝MySQL5.5.21圖解教程
- 將DataTable作為存儲過程參數(shù)的用法實例詳解
Mssql數(shù)據(jù)庫教程Rss訂閱編程教程搜索
Mssql數(shù)據(jù)庫教程推薦
- 在SQL Server中實現(xiàn)最短路徑搜索的解決方法
- 詳解Microsoft SQL Server數(shù)據(jù)庫開發(fā)問題
- 關(guān)于sqlserver 2005 使用臨時表的問題( Invalid object name #temptb)
- sql server 2008中的apply運算符使用方法
- 讓SQL Server數(shù)據(jù)庫自動執(zhí)行管理任務(wù)(二)
- 解讀編寫和優(yōu)化SQL Server的存儲過程
- SQLServer日志清空語句(sql2000,sql2005,sql2008)
- sql to sqlalchemy 轉(zhuǎn)換的小例子
- SQL Server 2008 安裝和配置圖解教程(附官方下載地址)
- 解析數(shù)據(jù)庫安全管理的三個經(jīng)驗
猜你也喜歡看這些
- 利用Xtrabackup工具備份及恢復(fù)(MySQL DBA的必備工具)
- MySQL 5.6 如何更改安全的處理密碼探討
- Mysql兩種情況下更新字段中部分數(shù)據(jù)的方法
- 解析mysql數(shù)據(jù)庫還原錯誤:(mysql Error Code: 1005 errno 121)
- MySQL數(shù)據(jù)庫INNODB 表損壞修復(fù)過程
- 如何通過配置自動實現(xiàn)ValueList中hql語句的整型參數(shù)轉(zhuǎn)換
- MYSQL SET類型字段的SQL操作知識介紹
- PHP mysqli 增強 批量執(zhí)行sql 語句的實現(xiàn)代碼
- MySQL筆記之連接查詢詳解
- MySQL筆記之?dāng)?shù)學(xué)函數(shù)詳解
- 相關(guān)鏈接:
- 教程說明:
Mssql數(shù)據(jù)庫教程-解析SQL Server 2000 SP4與數(shù)據(jù)鏈接池問題
。