2012-02-20 103 views
3

上的錯誤26我準備用Visual Basic 2010的程序,並且我使用的是SQL Server 2008數據庫。 (基於服務的數據庫)它正常工作。但有時(當我不使用電腦一段像2小時)我試着開始VB(F5)我的程序,它等待,然後給出了這樣的錯誤:SQL Server 2008中

A network-related or instance-specific error occured while establishing a connection to SQL Server. The server was not found or is not accesible. Verify that the instance name is correct and that SQL Server name is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified.)

我用Google搜索它,但沒有什麼幫助。恐怕這個錯誤在用戶使用該程序時會成爲問題。我該如何解決這個問題?

回答

1

也許網絡連接一段時間後關閉。檢查系統運行電源設置的選項

1

確保SQL Browser service運行。

1

我面對並得到了由嘗試這種解決同樣的問題 - 在運行類型services.msc

  • 服務窗口將在SQL服務器(SQLEXPRESS)彈出
  • 啓動此服務。