连接(LocalDB)\MSSQLLocalDB时出现LocalDB运行时错误的问题求助
我在Visual Studio 2022里做了一个WinForms应用,为了让它正常工作,我把名为“receipts”的数据库的.mdf文件复制粘贴到了项目目录里。但是当我尝试用(LocalDB)\MSSQLLocalDB连接SSMS的时候,遇到了下面这个错误:
Cannot connect to (LocalDB)\MSSQLLocalDB.
Additional information:
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.
不过用(local)连接的话是可以成功的。我已经试过卸载SSMS并更新Visual Studio 2022了,但问题还是没解决,想求助大家怎么处理这个问题。
备注:内容来源于stack exchange,提问作者The Unique 1

