防火墙阻止网络SQL访问 [英] Firewall blocking network SQL access

查看:394
本文介绍了防火墙阻止网络SQL访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试运行一些访问LAN上SQL Server的代码.我收到的错误是:(提供程序:SQL网络接口,错误:26-查找指定的服务器/实例时出错).尝试从Management Studio内部访问服务器时出现了相同的错误,并通过将Management STudio添加为防火墙的例外来解决了该错误.如果我关闭防火墙,则我的代码可以毫无问题地访问SQL Server,但是我希望启用防火墙,并且仍然允许我的.NET代码访问远程SQL Server.

有什么想法吗?
>
斯蒂芬

PS我在Vista上.即使使用相同的代码尝试访问同一网络上的同一服务器,我的XP机器上也没有此问题.

Hi all,

I am trying to run some code that accesses an SQL Server accross a LAN. The error I am getting is: (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified). I had the same error when trying to access the server from within Management Studio and resolved it by adding Management STudio as an exception to the firewall. If I turn off the firewall my code can access the SQL Server without any problems, but I would like to have the firewall enabled and still allow my .NET Code to access remote SQL Servers.

Any ideas?

STephen

P.S. I'm on Vista. Don't have this problem on my XP box even with the same code trying to access the same server on the same network.

推荐答案

感谢您的帖子!我建议用以下其中一种方式发布您的问题

<身体>
<身体>
<身体>
MSDN论坛»SQL Server»SQL Server数据访问»SQL网络接口,错误:26-错误定位指定的服务器/实例
位于此处: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=4009108&SiteID=1 .

Thank you for your post!  I would suggest posting your question in one of the 

 MSDN Forums » SQL Server » SQL Server Data Access » SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified
located here:  http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=4009108&SiteID=1.


这篇关于防火墙阻止网络SQL访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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