简体   繁体   中英

How to find Server Name login into SQL Server by Management Studio?

I have a question. Few days ago i installed SQL Server Management Stuido with all packages in it. My Connection string that im using with my MVC or WebApi apps looks like this:

"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\MSSQLLocalDB;Database=(name here);Trusted_Connection=True;"
 }

I can still manage my databases by SQL Object Explorer in visual studio, but my question is where find my Server Name ? Whatever i write, i cant acces to my local database server

在此处输入图片说明 在此处输入图片说明

How to get into Management Studio ? Where i can find my Server Name ?

You said you have installed SSMS, what about the server installation?

If the server has been installed successfully, try localhost instead of localdb. A dot(.) will also work as local host. The server name is provided while you install the server by you after selecting the named instance. If you leave it as default instance the pattern followed by sql server would be something like MSSQLSERVER......

Problem solved:

All you need to do is to click on Add SQL Server button in SQL Server Object Explorer . Then, in Browse tab click Local, then on your Server. Now you can see Server Name Label that you can login into Management Studio

在此处输入图片说明

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