0

我在我的应用程序中遇到了与 SQL 2016 MSSQLLocalDb 相关的问题。该系统是一个 Server 2012,我刚刚将我的 Web 应用程序部署到它。我已经安装了 SQLLocaldb 2016。

跑步

sqllocaldb info
gave this response:  The automatic instance MSSQLLocalDB was not created. 

所以我创建了一个名为 MSSQLLocalDB 的实例。

但是当我运行应用程序时,我得到了这个错误:使用:数据源=(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: 50 - Local 
Database Runtime error occurred. Cannot create an automatic instance. See the 
Windows Application event log for error details.
    ) 

将数据源更改为命名管道会出现此错误:

数据源=np:\.\pipe\LOCALDB#7A55F963\tsql\query

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) 

听到的是 SQL Server Management Studio 的屏幕截图(也无法连接) 在此处输入图像描述

有人可以帮忙吗?

我也无法打开配置管理器,当我尝试时出现此错误。

在此处输入图像描述

4

1 回答 1

0

尝试浏览:服务器名称 -> Brose 了解更多信息 -> 数据库引擎。

于 2018-01-15T15:39:21.593 回答