简体   繁体   English

SSMS 无法连接到 SQL 服务器 2019

[英]SSMS won't connect to SQL Server 2019

I have Microsoft SQL Server manager version 18.8 installed to my PC, as well as SQL Server 2019. Both are installed on my PC.我的 PC 上安装了 Microsoft SQL 服务器管理器版本 18.8,以及 SQL Server 2019。两者都安装在我的 PC 上。 I need to locally create and manage a database.我需要在本地创建和管理数据库。

1 1

I am trying to connect the SSMS but it's not working.我正在尝试连接 SSMS,但它不工作。 2 2

I entered to the services and restarted everything 3我进入服务并重新启动一切3

and I also enabled TCP/IP in configuration manager.我还在配置管理器中启用了 TCP/IP。 4 4

what should I do?我应该怎么办?

  • You have a named instance of SQL Server named SQLEXPRESS (this is shown in parentheses within the SQL Server service name " SQL Server (SQLEXPRESS) " in the Windows Services MMC snap-in. You have a named instance of SQL Server named SQLEXPRESS (this is shown in parentheses within the SQL Server service name " SQL Server (SQLEXPRESS) " in the Windows Services MMC snap-in.
  • You need to specify the instance-name in the Server name: field.您需要在Server name:字段中指定实例名称。
  • You can only omit the instance-name for default instances .您只能省略默认实例的实例名称。

You need to specify .\SQLEXPRESS or (local)\SQLEXPRESS to be able to connect.您需要指定.\SQLEXPRESS(local)\SQLEXPRESS才能连接。

Try connecting using .\SQLEXPRESS as the server name.尝试使用.\SQLEXPRESS作为服务器名称进行连接。

It seems you have created an instance with the name SQLEXPRESS .看来您已经创建了一个名为SQLEXPRESS的实例。 With SQL server you can create "instances".使用 SQL 服务器,您可以创建“实例”。 Each instance is like its own separate database engine and has its own list of databases, users and so forth.每个实例就像它自己独立的数据库引擎,有自己的数据库、用户等列表。 There can be one default instance which would be just the computer name or .可以有一个默认实例,它只是计算机名称或. . . In your case you have a named instance "SQLEXPRESS" which you need to address using .\SQLEXPRESS or <computername>\SQLEXPRESS .在您的情况下,您有一个命名实例“SQLEXPRESS”,您需要使用.\SQLEXPRESS<computername>\SQLEXPRESS来解决它。

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

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