(提供程序:SQL网络接口,错误:26 - 查找指定的服务器/实例时出错) [英] (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

查看:81
本文介绍了(提供程序:SQL网络接口,错误:26 - 查找指定的服务器/实例时出错)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好每一个,

i有一个应用程序,即网络在本地系统中很好地进行,但是当我在服务器上发布它想要远程访问它时会抛出错误



System.Data.SqlClient.SqlException:建立与服务器的连接时发生错误。连接到SQL Server 2005时,此错误可能是由于在默认设置下SQL Server不允许远程连接。 (提供者:SQL网络接口,错误:26 - 查找指定的服务器/实例时出错)



如果有任何其他连接字符串,任何人都会帮助我远程访问。



谢谢'

hello every one,
i have a application i.e web its woking in the local system nicely but when i publish it in server and wanted to access remotely it throws the error

System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

any one help me out if there is any other connection string for remote access.

THANK''S

推荐答案

在SQL Server Management Studio中,请检查是否选中启用远程连接复选框是否已选中。如果没有,你需要启用它。



如果它不适合你,请告诉我。



如果以上步骤不起作用,请执行以下步骤:

1.转到SQL Server配置管理器(Windows启动 - > Microsoft SQL Server-> SQL Server配置经理)

2.扩展SQL Native客户端(版本号)配置

3.选择客户端协议

4.启用TCP / IP和命名管道。

4.启用上述协议后,重新启动SQL Server服务。
In SQL Server Management Studio, please check if "Enable Remote Connections" checkbox is checked or not. If not, you need to enable it.

Let me know if it doesn''t work for you.

If the above doesn''t work, go through the following steps:
1. Go to SQL Server Configuration Manager (windows start->Microsoft SQL Server-> SQL Server Configuration Manager)
2. Expand the SQL Native client (version number) Configuration
3. Select Client protocols
4. Enable TCP/IP and Named Pipes.
4. After you enable the above protocols, restart the SQL Server Service.


这篇关于(提供程序:SQL网络接口,错误:26 - 查找指定的服务器/实例时出错)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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