- 帖子
- 1
- 主題
- 1
- 精華
- 0
- 積分
- 2
- 點名
- 0
- 作業系統
- WIN7
- 軟體版本
- Office 2007
- 閱讀權限
- 10
- 註冊時間
- 2013-4-28
- 最後登錄
- 2013-4-28
|
[發問] 我的網站不能連接MSSQL 2008 R2
我最近在寫一個網站.那我找了一個free web hosting.但不知道為什麼其中一頁不能連接我的資料庫..其他的都可以..- Dim cts As ConnectionStringSettings = ConfigurationManager.ConnectionStrings("MembersDB")
- Dim sds As New SqlDataSource(cts.ProviderName, cts.ConnectionString, "")
複製代碼 我的錯誤是:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
我煩了好幾天也沒有辦法解決.
感謝!! |
|