Hi @Budour AlHarbi ,
You can have a look at this thread, which may be a similar issue.
Steps to connect LocalDB to Visual Studio Server Explorer:
Open command prompt
Run SqlLocalDB.exe start v11.0
Run SqlLocalDB.exe info v11.0
Copy the Instance pipe name that starts with np:...
In Visual Studio select TOOLS > Connect to Database...
For Server Name enter (localdb)\v11.0. If it didn't work, use the Instance pipe name that you copied earlier. You can also use this to connect with SQL Management Studio.
Select the database on next dropdown list
Click OK
For more information, please refer to this:https://stackoverflow.com/questions/21563940/how-to-connect-to-localdb-in-visual-studio-server-explorer
Best regards,
Seeya
If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.