SSMS18 如何连接到本地服务器?
SSMS18 How to connect to a local server?
我在 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
------------------------------
打开 SSMS
然后按 Connect
,对于 Server Name
类型:(LocalDb)\MSSQLLocalDB
,保持身份验证为 Windows Authentication
。
我在 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
------------------------------
打开 SSMS
然后按 Connect
,对于 Server Name
类型:(LocalDb)\MSSQLLocalDB
,保持身份验证为 Windows Authentication
。