如何让VS2010在XPMode下查看主机Win7操作系统上运行的SQL Server?

发布于 2024-08-16 02:48:45 字数 764 浏览 4 评论 0原文

您好,

我已经在 Wndows 7 Professional x64 上运行 Windows XP 模式。我有一个 在 Windows 7 上运行的 SQL 2008 实例,我想要它的副本 VS2010b2 Pro里面运行WinXPMode看看。但是,我无法弄清楚 网络和防火墙调整的正确组合。下面是 到目前为止我所做的事情。有人可以帮我解决我剩下要做的事情吗 让这个工作吗?我已经尝试过网站其他地方提到的 SQL2005 的几种解决方案,但仍然没有什么乐趣。

谢谢,Dan

  • 在主机操作系统上安装了环回适配器
  • 设置环回适配器以获得静态 IP 地址 192.168.3.1 VPC 网络适配器将用作其互联网网关。
  • 配置 XP 模式虚拟机以使用环回适配器。
  • 为 XP 模式下的网络连接指定静态 IP 地址 192.168.3.2。 默认网关为 192.168.3.1。

此时,我可以从我的来宾操作系统 ping 我的主机操作系统。

  • 为我的 Win7 防火墙添加了端口 1433/TCP 和 1434/UDP 的传入规则 以及 sqlsrvr.exe
  • 打开 SQL Server 配置管理器并启用 TCP/IP 对于我的主机操作系统上的 SQL Server
  • 在 TCP/IP 属性中,在端口 1433 上添加了 IP 192.168.3.1 的条目

但是,我仍然无法从内部远程登录到我的主机操作系统端口 1433 或 1434 我的客户操作系统已经没有主意了。

HI,

I've got Windows XP Mode running on Wndows 7 Professional x64. I have an
instance of SQL 2008 running on Windows 7 which I would like my copy of
VS2010b2 Pro running inside WinXPMode to see. However, I cannot figure out the
right combination of networking and firewall adjustments to make. Below is
what I've done so far. Can someone help me out with what I've left to do to
get this working? I've tried working through several solutions for SQL2005 mentioned elsewhere on the site, but still no joy.

Thanks, Dan

  • Installed Loopback Adapter on Host OS
  • Set up Loopback Adapter to have a static IP address 192.168.3.1 which the
    VPC network adapter will use as its internet gateway.
  • Configured the XP Mode Virtual Machine to use the loopback adapter.
  • Gave the network connection in XP mode the static IP address 192.168.3.2.
    and the default gateway as 192.168.3.1.

At this point I can ping my host OS from my guest OS.

  • Added incoming rules to my Win7 firewall for port 1433/TCP and 1434/UDP
    and also for sqlsrvr.exe
  • Opened SQL Server Configuration Manager and Enabled TCP/IP
    for your SQL Server on my host OS
  • Within properties for TCP/IP, added entry for IP 192.168.3.1 on port 1433

However, I still cannot telnet to my host OS port 1433 or 1434 from within
my guest OS and have run out of ideas.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一绘本一梦想 2024-08-23 02:48:45

我自己找到了解决方案。作为参考,我错过了上面列表中的两件事。

  1. 在 SQL Server 配置管理器中,我没有将 TCP/IP 配置中的 IPAll 条目设置为在端口 1433 上接收。
  2. 在防火墙控制面板中,我没有仔细检查防火墙是否已打开端口 1433/TCP 和 1434/公共网络上的 UDP,Win7 将环回适配器网络视为如此。

我已在 http://blog.hmobius.com/post/2009/12/24/如何在您的 Windows-7-Host-OS.aspx 上获取 Windows-7-XP-Mode-Apps-to-talk-to-SQL-2008.aspx#continue

Found the solution myself. For reference, I missed two things in that list above.

  1. In SQL Server Config Manager, I didn't also set the IPAll entry in TCP/IP config to receive on port 1433.
  2. In the firewall control panel, I didn't double check that the firewall had opened port 1433/TCP and 1434/UDP on the Public network which is what Win7 treats the loopback adapter network as.

I've documented the full set of steps at http://blog.hmobius.com/post/2009/12/24/How-to-get-Windows-7-XP-Mode-Apps-to-talk-to-SQL-2008-on-your-Windows-7-Host-OS.aspx#continue

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文