返回列表 上一主題 發帖

[發問] 我的網站不能連接MSSQL 2008 R2

[發問] 我的網站不能連接MSSQL 2008 R2

我最近在寫一個網站.那我找了一個free web hosting.但不知道為什麼其中一頁不能連接我的資料庫..其他的都可以..
  1. Dim cts As ConnectionStringSettings = ConfigurationManager.ConnectionStrings("MembersDB")
  2.     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)

我煩了好幾天也沒有辦法解決.

感謝!!

        靜思自在 : 一個人不怕錯,就怕不改過,改過並不難。
返回列表 上一主題