2

我在 SSMS18 上工作的时间最长,但我主要连接到远程 SQL 服务器。但是现在我正在尝试连接到我的本地主机服务器,但现在我无法连接。

我已经在网上搜索了一些技巧,但似乎没有任何效果,并且大多数情况下使用过时的 SSMS 服务器。

TITLE: Connect to Server
------------------------------

Cannot connect to localhost\sqlexpress.

------------------------------
ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------


4

1 回答 1

0

打开SSMS然后按Connect,对于Server Name类型:(LocalDb)\MSSQLLocalDB,保持身份验证为Windows Authentication

在此处输入图像描述

于 2021-09-21T08:21:19.623 回答