简体   繁体   中英

SMSS18 can't connect to LocalDb

Something has gone awry from my local machine. Everything used to work fine. Now, I can't connect to (localdb)\mssqllocaldb .

Running the application locally from Visual Studio 2022 connects fine. It's using the following connection string: "Server=(localdb)\\mssqllocaldb;Database=[DatabaseName];Trusted_Connection=True;MultipleActiveResultSets=true"

From SMSS18, I get the following: 在此处输入图像描述

Here's my login screen: 在此处输入图像描述

What am I doing wrong? What can I change to fix this?

I had this issue and this solution worked for me:

在此处输入图像描述

And connect to master database:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM