返回列表 上一主題 發帖

[發問] 我的網站不能連接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)

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

感謝!!

        靜思自在 : 【是否發揮了良能?】人間壽命因為短暫,才更顯得珍貴。難得來一趟人間,應問是否為人間發揮了自己的良能,而不要一味求長壽。
返回列表 上一主題