SQLLocal DB 2016无法连接

时间:2018-01-15 15:32:32

标签: sql-server localdb sql-server-2016-localdb

我在应用程序中遇到与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的屏幕截图(也无法连接) enter image description here

有人可以帮忙吗?

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

enter image description here

1 个答案:

答案 0 :(得分:0)

尝试浏览:服务器名称 - >博泽更多 - >数据库引擎。