sql server 2008“与网络相关或特定于实例的错误..."; [英] sql server 2008 "a network related or instance specific error..."

查看:68
本文介绍了sql server 2008“与网络相关或特定于实例的错误...";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我在服务器和"sql server R2"上以及从具有Windows XP的客户端上安装了"Windows Server 2008 Enterprise".我可以从远程桌面连接"远程访问服务器.

并且服务器中的MSSQLSERVER也已启动".

但是我无法在客户端到服务器之间建立与"sql server 2008 R2"的连接,错误是:

建立与SQL Server的连接时发生与网络相关或特定于实例的错误.服务器未找到或无法访问.验证实例名称正确,并且已将SQL Server配置为允许远程连接. (提供程序:命名管道提供程序,错误:40-无法打开与SQL Server的连接)(.Net SqlClient数据提供程序)

我应该怎么做?

Hello

I installed "windows server 2008 enterprise" on server and "sql server R2" and from a client that it has windows XP . I can remote to the server from Remote Desktop Connection.

And also MSSQLSERVER in server is "Started".

But I can not make a connection to "sql server 2008 R2" in client to server and the error is :

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)

How I should do?

推荐答案

可能是表面积配置错误或sql服务配置问题.请查看此线程的潜在原因和解决方法: ^ ]

如果需要,请在此处参见设置外围应用配置的步骤. .

如果这不能解决您的问题,请查看以下线程:
http://forums.asp.net/t/1334649.aspx [ SQL服务器修复错误(提供者:命名管道 [
It might be surface area configuration error or sql service configuration issue. Have a look at this thread for potential reasons and resolutions: Resolving A network-related or instance-specific error occurred while establishing a connection to SQL Server[^]

If needed, See steps for setting up Surface area configuration here..

If this does not resolve your issue, have a look at these thread:
http://forums.asp.net/t/1334649.aspx[^]
SQL SERVER FIX ERROR (provider: Named Pipes [^]
Quite few possible reasons and resolutions are proposed here too.


请在连接字符串
中检入您的Web配置文件
我想你这样写:


SqlCon"value ="数据源= AJay \\ XYZ;初始目录= XYZ;用户ID = XYZ;密码= XYZ"
删除一个\就可以了.

像这样:


SqlCon"value =" Data Source = AJay \ XYZ; Initial Catalog = XYZ; User ID = XYZ; Password = XYZ"
Hi Check in Your web config file inside connection string

i think u wrote like this:


SqlCon" value="Data Source=AJay\\XYZ;Initial Catalog=XYZ;User ID=XYZ;Password=XYZ"
remove one\ it will work fine.

like this:


SqlCon" value="Data Source=AJay\XYZ;Initial Catalog=XYZ;User ID=XYZ;Password=XYZ"


我关闭了防火墙,此问题已解决.
I turned off firewall and it was solved.


这篇关于sql server 2008“与网络相关或特定于实例的错误...";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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