首页 > 数据库技术 > 详细

处于同一个域中的两台Sql server 实例无法连接

时间:2015-09-09 13:17:59      阅读:281      评论:0      收藏:0      [点我收藏+]

处于同一个域中的两台Sql server 实例无法连接,报的错误信息如下:

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)

 技术分享

错误原因是远程Server没有打开防火墙端口1433

 

1433端口用于远程连接,是Sql Server默认的端口,SQL Server服务使用两个端口:TCP-1433、UDP-1434。其中1433用于供SQL Server对外提供服务,1434用于向请求者返回SQL Server使用了哪个TCP/IP端口。

 

Solution

step1,打开FireWall,Advanced Settings

技术分享

技术分享

 

step2,New Inbound Rule,创建一个Port, TCP 1433

技术分享

 

技术分享

技术分享

step3,下面的Action,Profile采用默认值,将Name命名为Sql Server Data Engine Remote connection

技术分享

技术分享

技术分享

 step4,查看在FireWall中创建的Inbound Rule

技术分享

处于同一个域中的两台Sql server 实例无法连接

原文:http://www.cnblogs.com/ljhdo/p/4794121.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!