简体   繁体   English

无法连接到网络上的SQL Server 2008 R2 Express实例

[英]Cannot connect to SQL Server 2008 R2 Express Instance on the Network

I installed an instance of SQL Server 2008 R2 Express on my 32 bit Windows 7 machine. 我在32位Windows 7计算机上安装了SQL Server 2008 R2 Express实例。 I can see it and connect to it with SQL Server Management Studio locally but not on the network. 我可以看到它并使用SQL Server Management Studio在本地(但不在网络上)连接它。

SQL Server Configuration Manager Settings SQL Server配置管理器设置

  • SQL Server Browser is running (Log on As "NT AUTHORUITY\\LocalService") SQL Server浏览器正在运行(以“ NT AUTHORUITY \\ LocalService”身份登录)
  • Named Pipes for this instance are Enabled 此实例的命名管道已启用
  • TCP/IP Enabled Dynamic ports are set to nothing the TCP Ports are set to 1433 启用TCP / IP的动态端口设置为空,TCP端口设置为1433

In the Server Properties from SSMS 在SSMS的服务器属性中

  • Connections --> I have the "Allow remote connections to this server" box checked 连接->我已选中“允许与此服务器进行远程连接”框

The Firewall is turned off for testing 防火墙已关闭以进行测试

When I try to see this instance with a command prompt (sqlcmd -L) from another computer I get a list of network servers. 当我尝试从另一台计算机通过命令提示符(sqlcmd -L)查看该实例时,我会获得网络服务器列表。 Sometimes it shows up and sometimes it doesn't. 有时会出现,有时却不会。 If it shows up I still can't seem to connect and the error message number is 26. If feels like there is some switch somewhere that needs to be turned on. 如果显示出来,我似乎仍然无法连接,错误消息号为26。如果感觉有一些开关需要打开。

I am leaving this up there for any other users who have mental blocks occasionally... I had not turned off all the firewalls. 我将其留给其他偶尔遇到精神障碍的用户使用...我没有关闭所有防火墙。 In windows7 you have three different firewalls and you have to turn off the right one 在Windows7中,您有三种不同的防火墙,您必须关闭正确的防火墙

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM