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......
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.