错误:建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问. [英] Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

查看:87
本文介绍了错误:建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有Windows 2008 R2并运行SQL Server 2008 R2.
将Web部件管理器添加到我的页面并运行时,它给我以下错误:

建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.验证实例名称正确,并且已将SQL Server配置为允许远程连接. (提供者:SQL网络接口,错误:26-指定服务器/实例时出错)



请告知

解决方案

错误说明了一切.您确定SQL Server正在运行吗?请参阅以下解决方案以对其进行故障排除.

发生了与网络相关或与实例有关的错误 [ ^ ]
与网络相关或与实例有关的错误 [ ^ ]
asp.net Web部件中的错误 [ ^ ]
如何解决此错误 [ < connectionStrings > ; <!- 解决与连接有关的Web部件提供程序问题 -> < 删除 =" LocalSqlServer" / < 添加 =" LocalSqlServer" connectionString SERVER =. ; Integrated Security = true; Initial Catalog = DotStreamDB" providerName System.Data.SqlClient" / < /connectionStrings >


解决方案是

Hi,

I have Windows 2008 R2 and running SQL Server 2008 R2.
When adding a web part manager to my page and run it gives me the following error:

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)



Please Advise

解决方案

The error says it all. Are you sure SQL Server is running? See following solutions for troubleshooting it.

A network-related or instance-specific error occurred[^]
A network-related or instance-specific error[^]
Error in asp.net web parts[^]
how to resolve this error[^]


Finally I found the solution :)

<connectionStrings>
    <!-- Resolve Web Parts Provider Probleam with connection -->
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="SERVER=.;Integrated Security=true;Initial Catalog=DotStreamDB" providerName="System.Data.SqlClient" />
</connectionStrings>


The solution is here

I just pick the first link from google


这篇关于错误:建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆