【问题标题】:SSMS18 How to connect to a local server?SSMS18 如何连接到本地服务器?
【发布时间】:2021-09-21 07:58:52
【问题描述】:

我在 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-18


    【解决方案1】:

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

    【讨论】:

    • 这行得通,谢谢。它向我显示了重新启动我的 sql server 服务的错​​误。原来我的 MSSQL 服务之前没有运行。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-20
    • 2012-01-03
    • 2016-12-13
    • 1970-01-01
    • 2018-10-09
    相关资源
    最近更新 更多