Visual Studio Code Map: Unable to connect to the specified database

前端 未结 3 664
余生分开走
余生分开走 2020-12-31 09:51

I can\'t use Code Map in Visual Studio due to this error:

Unable to connect to the specified database.

An exception occurred attempting to

3条回答
  •  长情又很酷
    2020-12-31 10:12

    This worked for me:

    Delete, Create, Start localDB instance used by CodeMap:

    %localappdata%\Microsoft\Microsoft SQL Server Local DB\Instances\MSSQLLocalDB
    

    Using these commands:

    sqllocaldb stop "MSSQLLocalDB" -k
    sqllocaldb delete "MSSQLLocalDB"
    sqllocaldb create "MSSQLLocalDB" 
    sqllocaldb start "MSSQLLocalDB"
    

    Then restart VS

提交回复
热议问题