2012-02-20 105 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)弹出
  • 启动此服务。