错误:建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.

编程入门 行业动态 更新时间:2024-10-25 22:26:23
本文介绍了错误:建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

请告知

解决方案

错误说明了一切.您确定SQL Server正在运行吗?请参阅以下解决方案以对其进行故障排除. 发生了与网络相关或与实例有关的错误 [ ^ ] 与网络相关或与实例有关的错误 [ ^ ] asp 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 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的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.

本文发布于:2023-11-02 13:44:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552553.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   未找到   实例   无法访问   生与

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!