我在应用程序中遇到与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的屏幕截图(也无法连接)
有人可以帮忙吗?
我也无法打开配置管理器,当我尝试收到此错误时。
答案 0 :(得分:0)
尝试浏览:服务器名称 - >博泽更多 - >数据库引擎。