日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

“SQL Server does not allow remote connections”错误的解决

發(fā)布時間:2025/4/5 数据库 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 “SQL Server does not allow remote connections”错误的解决 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
安裝DNN 4.8的時候出現(xiàn)這個錯誤

Connection Error(s):

Index #: 0
Source: .Net SqlClient Data Provider
Class: 20
Number: 53
Message: 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)

因為
對于SQL Server 2005 Express Edition 和 SQL Server 2005 Developer Edition 默認的設置是不允許 remote connections 的,參考MSDN的文檔可以更改設置:http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277

我的機器上安裝了SQL 2000 的Personal版本和SQL 2005 Express(隨VS自動安裝的),我使用的是SQL 2000的Personal版本,應該不存在這個問題。在研究一番之后找到了答案。

在沒有安裝SQL 2005 Express之前,我的機器上只有一個SQL Server,我一般在連接字符串里使用local來指明使用本地的SQL 2000 Personal 版本。安裝Express版后,機器上會存在兩個SQL 的實例。如圖:


一個是LAND001(我的計算機名),一個是LAND001\SQLEXPRESS。這個時候,如果還是用local來指代SQL Server Personal版本,DNN安裝是不會找Personal版,而是找到 Express版。

解決辦法,連接字符串中使用SQL的實例名準確指定要使用的SQL Server,比如LAND001。

轉(zhuǎn)載于:https://www.cnblogs.com/DotNetNuke/archive/2008/06/08/1215913.html

總結(jié)

以上是生活随笔為你收集整理的“SQL Server does not allow remote connections”错误的解决的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。