2011-09-30 99 views
0

这是我正面临的场景。VmWare实例上的SQL Server 2008 R2连接

  1. 我在VMWare上安装了Windows 7 Professional。
  2. 已安装SQL Server 2008 R2。

当我启动Server Management Studio并尝试连接到该实例我碰到下面的错误

"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) (Microsoft SQL Server, Error: 53)"

现在,我缺省设置安装的SQL服务器的所有包。我所做的唯一改变是选择混合模式进行身份验证。

我在桌面上设置了一个类似的实例,它工作正常。在发布之前,我已经在网上搜索并确保所有服务,端口和协议都已启用/正在运行。

但我仍然无法连接,任何帮助?

回答

0

好吧,终于找到了解决上述问题的方法。不知道为什么,但当我给实例名称预先附加。\它工作正常。

.\<INSTANCENAME> 
0

您可能没有安装默认实例?

http://msdn.microsoft.com/en-us/library/ms143531.aspx

+0

的第一时间我使用默认设置,我得到一个不同的错误尝试,然后我得到了一些专家的意见,然后用提供实例名称重新安装。 – Vivek

+0

@vksvicky听起来好像没有默认实例,只是命名的实例。只有一个默认实例可以连接到,而不指定实例名称。 –

+1

默认情况下,如果您不提供名称,则MSSQLSERVER是实例的名称,不是吗? – Vivek