我已经重新安装了我的 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)
有人知道如何解决这个问题吗?我确实需要加快我的开发速度,但数据库问题使我无法做任何事情。
最佳答案
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/