无法远程连接到 SQL Server 数据库
我在 Windows Server 2008 R2 版本上设置了 SQL Server 2008 R2 开发人员版本,尽管我能够通过 SQL Server Management Studio 在本地访问数据库(使用我的服务器 name\MSSQLSERVER
),我无法远程进入那里(使用IP\MSSQLSERVER
)。
我已经关闭了 Windows 的防火墙(没有安装其他防火墙),并打开了 SQL Server 的所有 4 个协议(共享内存、命名管道、TCP/IP 和 VIA),并打开了 SQL Server Management Studio 中的每一项服务没有运气。
请你帮助我好吗?
非常感谢!
I have a SQL Server 2008 R2 Developer edition set up on a Windows Server 2008 R2 edition and although I was able to get into the database locally via SQL Server Management Studio (using my server name\MSSQLSERVER
), I was unable to get in there remotely (using IP\MSSQLSERVER
).
I have turned off the firewall for Windows (no other firewall installed) and turned on all 4 protocols for SQL Server (Shared Memory, Named Pipes, TCP/IP and VIA) and has turned on every single service in the SQL Server Management Studio with no luck.
Could you please help me?
Many thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
从所有程序中启用 TCP/IP、共享内存和命名管道> SQL 2012 >配置工具>> SQL Server配置管理器>>展开 sql server 网络配置 > sql2012r2de 协议
enable TCP/IP, Shared Memory and Named Pipes from all prorams> sql 2012 > configuration tools > sql server configuration manager > expand sql server network configuration > protocols for sql2012r2de
您检查过以下内容吗?
Did you check the following?
您确定正在连接到开发者实例吗?从实例名称来看,您似乎安装了 SQL Server Express 版本...
通过运行此 SQL 语句进行检查:
SQL Server Express 默认情况下不允许远程连接 - 请参阅此 Microsoft 知识库了解如何启用远程连接。
Are you sure you're connecting to the developer instance?? From the instance name, it would appear that you have a SQL Server Express edition installed....
Check by running this SQL statement:
SQL Server Express does not allow remote connections by default - see this Microsoft KB to learn how to enable remote connections.
重新安装整个系统并打开 TCP 连接端口 1433 后问题已解决。
Problem fixed after reinstall the whole system and open port 1433 for TCP connections.