无法从 SSMS 连接到 SQL Server express

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6006980/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 10:33:54  来源:igfitidea点击:

Cannot connect to SQL Server express from SSMS

sqlsql-serversql-server-2005ssms

提问by Abid Ali

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

I have installed SQL Server Management Studio 2005. I can't find my server name when I click browse for more but i know that my server name will be the same as the user name as in the picture below.

我已经安装了 SQL Server Management Studio 2005。当我单击“浏览更多”时我找不到我的服务器名称,但我知道我的服务器名称将与下图中的用户名相同。

回答by Alex Aza

Use .or (local)or localhostfor server name if you installed the server as default instance.

使用.或者(local)localhost服务器名称,如果你安装了服务器默认实例。

Use .\sqlexpressor localhost\sqlexpressif you have SQL Express.

使用.\sqlexpress或者localhost\sqlexpress如果您有 SQL Express。

The server name syntax is

服务器名称语法是

Servername\InstanceName

Servername\InstanceName

If the instance is default you use just Servername.
For SQL Express, instance name is sqlexpress by default.

如果实例是默认的,则只使用 Servername。
对于 SQL Express,实例名称默认为 sqlexpress。