SQL Server 2016 Developer 版本无法连接到 (LocalDB)\MSSQLLocalDB

标签 sql sql-server

我已经重新安装了我的 SQL Server 2016,因为未知原因导致 SQL Server 宕机...但是,当我完成安装时,我发现我无法连接到 (LocalDB)\MSSQLLocalDB 任何更多。我从 SQL Server 收到此错误消息。

Cannot connect to (LocalDB)\MSSQLLocalDB.

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: 52 - Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled.) (Microsoft SQL Server, Error: 2)

enter image description here

有人知道如何解决这个问题吗?我确实需要加快我的开发速度,但数据库问题使我无法做任何事情。

最佳答案

LocalDB 是 SQL Server Express 的特殊版本 - 如果您尚未安装它,则无法使用该服务器/实例名称连接到它。

您可以轻松地单独安装 SQL Server Express LocalDB,并与 SQL Server Developer 版本并行安装 - 但您需要显式安装它。

参见 this other SO question on the topic了解更多详情

关于SQL Server 2016 Developer 版本无法连接到 (LocalDB)\MSSQLLocalDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42885377/

相关文章:

mysql - 如何为不同类型的列编写单个查询

php - Mysql全文帮助

c# - 动态创建.mdf/.sdf 数据库

sql-server - 如何使用命令行将本地数据库作为 bacpac 直接导出到 AZURE blob

sql - 每月值的总和除以每月的天数

MySQL:基于稍后连接的表的连接条件

c# - 如何返回包含在 1 个函数中找到的总行数的记录

sql - 如何生成插入?

sql - 我可以为主键设置ignore_dup_key吗?

sql-server - 为什么 redshift 不接受我的固定宽度文本文件