SSMS Cannot connect to (localdb)\MSSQLLocalDB 2019

Hugo Helluy 20 Reputation points
2023-05-31T14:24:56.9633333+00:00

Hello,

I'm trying to connect to the local instance (localdb)\MSSQLLocalDB with SSMS 19.02.

The connection attempt fails and I get :

"A network or instance-specific error occurred while trying to connect to SQL Server. The server cannot be found or is not accessible. Check 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. An error occurred when starting the local database instance: the SQL Server process could not start. ) (Microsoft SQL Server, Error: -1983577846) For help, click on: https://docs.microsoft.com/sql/relational-databases/errors-events/mssqlserver--1983577846-database-engine-error"

I've already tried to reinstall, without success.

Does anyone have a solution?

Thank you for your help.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,840 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Erland Sommarskog 102K Reputation points MVP
    2023-06-07T22:09:56.6866667+00:00

    I found this:

    2023-06-02 13:29:25.54 spid10s FCB::Open failed: Could not open file d:\dbs\sh\s19c\0719_152503\cmd\1e\obj\x64retail\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf for file number 0. OS error: 3(Le chemin d’accès spécifié est introuvable.).

    and a few more of the same kind. Something has gone wrong during installation, so that master has the wrong path for model and msdb. I would try to uninstall and re-install.

    0 comments No comments

  2. Blan Wang 0 Reputation points Microsoft Employee
    2023-08-25T07:04:14.1433333+00:00

    I came into the same issue where error log gives 'OS error: 3(The system cannot find the path specified.).', and finally fixed by following https://stackoverflow.com/questions/34190872/sql-server-2014-localdb-stopped-working-after-reportviewer-2015-runtime-installa

    0 comments No comments