日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

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

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

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。

轉載于:https://www.cnblogs.com/DotNetNuke/archive/2008/06/08/1215913.html

總結

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

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。