简体   繁体   English

无法通过实例名称连接到SQL Server 2008 R2?

[英]Unable to connect to SQL server 2008 R2 via Instance name?

I don't understand : 我不明白:

I've installed sql server 2008 R2. 我已经安装了sql server 2008 R2。 the installation process asked me for the desired instance name , so I wrote: MSSQLSERVER . 安装过程要求我提供所需的实例名称,所以我写了: MSSQLSERVER

after the installation , running Setup Discovery Report does shows me the instance name : 安装后,运行安装发现报告确实会向我显示实例名称:

在此处输入图片说明

I've also installed all the service packs. 我还安装了所有Service Pack。

Also , all the services are up : 此外,所有服务都已启动:

在此处输入图片说明

Also , all the ports are open ( tcp:1433 + udp :1434) 另外,所有端口都是开放的(tcp:1433 + udp:1434)

在此处输入图片说明

在此处输入图片说明

Also , Named pipes are on : 另外,命名管道位于: 在此处输入图片说明

So , where is the problem ? 那么,问题出在哪里呢?

I'm unable to connect via the instance name : 我无法通过实例名称进行连接: 在此处输入图片说明

Also unable with : 也无法使用:

user\\MSSQLSERVER where user is the computer name. user\\MSSQLSERVER ,其中user是计算机名称。

Also unable with : .\\MSSQLSERVER 也无法使用: .\\MSSQLSERVER

But (weird) : 但是 (奇怪):

Those 4 do work : (when I try to connect to them) 这4个工作:(当我尝试连接到它们)

  • user ( "user" is my machine name) user (“用户”是我的计算机名)
  • (local)
  • .
  • localhost

Question : 题 :

why I can't use my instance name to connect to my sql server ? 为什么我不能使用实例名称连接到SQL Server?

Related info : 相关资料:

After connecting via one of the 4 who work , I run a helpful info : 通过工作的4个人之一进行连接后,我运行了一条有用的信息:

在此处输入图片说明

ps to be honets , I also asked this question in dba's stack site. ps是honets,我也在dba的堆栈站点中问了这个问题。 ( cause I didn't know to which it more related) (因为我不知道与它更相关)

You are trying to connect to default instance of SQL Server. 您正在尝试连接到SQL Server的默认实例。 And for that you don't connect to instance using instance name but rather server name. 因此,您不必使用实例名称而是使用服务器名称来连接实例。

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 . 因此,例如,如果您的计算机名称为DBServer,并且您正在使用默认实例MSSQLSERVER ,则可以通过指定服务器名称DBServer(本地)或来简单地连接到该实例 (just a dot) (只是一个点)

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

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