本文介绍了无法通过实例名称连接到 SQL Server 2008 R2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白:

我已经安装了 sql server 2008 R2.安装过程要求我提供所需的实例名称,所以我写道:MSSQLSERVER.

I've installed sql server 2008 R2. the installation process asked me for the desired instance name , so I wrote: MSSQLSERVER.

安装后,运行 Setup Discovery Report 确实会显示实例名称:

after the installation , running Setup Discovery Report does shows me the instance name :

我还安装了所有服务包.

I've also installed all the service packs.

此外,所有服务都已启动:

Also , all the services are up :

此外,所有端口都是开放的(tcp:1433 + udp:1434)

Also , all the ports are open ( tcp:1433 + udp :1434)

此外,命名管道已打开:

Also , Named pipes are on :

那么,问题出在哪里?

我无法通过实例名称连接:

I'm unable to connect via the instance name :

也无法使用:

user\MSSQLSERVER 其中 user 是计算机名称.

user\MSSQLSERVER where user is the computer name.

也无法使用:.\MSSQLSERVER

但是(奇怪):

这 4 个工作:(当我尝试连接到它们时)

Those 4 do work : (when I try to connect to them)

  • user(user"是我的机器名)
  • (本地)
  • .
  • 本地主机
  • user ( "user" is my machine name)
  • (local)
  • .
  • localhost

问题:

为什么我不能使用我的实例名称连接到我的 sql server?

why I can't use my instance name to connect to my sql server ?

相关信息:

通过 4 个工作中的一个连接后,我运行了一个有用的信息:

After connecting via one of the 4 who work , I run a helpful info :

附言老实说,我也在 dba 的堆栈站点中问了这个问题.(因为我不知道它与哪个更相关)

p.s. to be honets , I also asked this question in dba's stack site. ( cause I didn't know to which it more related)

推荐答案

您正在尝试连接到 SQL Server 的默认实例.为此,您不使用实例名称而是使用服务器名称连接到实例.

You are trying to connect to default instance of SQL Server. And for that you don't connect to instance using instance name but rather server name.

例如,如果您的机器名称是 DBServer 并且您使用的是默认实例 MSSQLSERVER,那么您可以通过指定服务器名称 来简单地连接到该实例DBServer(本地).(只是一个点)

So for example if your machine name is DBServer and you are using default instance MSSQLSERVER, then you can simply connect to that instance either by specifying server name DBServer or (local) or . (just a dot)

这篇关于无法通过实例名称连接到 SQL Server 2008 R2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-05 09:41