无法从 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
Cannot connect to SQL Server express from SSMS
提问by Abid Ali
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 localhost
for server name if you installed the server as default instance.
使用.
或者(local)
或localhost
服务器名称,如果你安装了服务器默认实例。
Use .\sqlexpress
or localhost\sqlexpress
if 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。