Is there a way to change a mssql express from a named instance to localhost?
When first installing the server I gave my mssql express server, a name. Now, working on a project where the web.config specifcs the localhost, or (local), I have to edit all of these before I migrate the db or run the application.
To connect to my database, I have to specify my instance instead of localhost like so: MyComputerNameInstance;Database=db_name;"
I would like to simply use: localhost;Database=db_name;
This currently does not work.
I don't want to have to re-install mssql, however I have considered this an option if no other options are avaiable.
I am using "Microsoft SQL Server Express Edition with Advanced Services" version 10.50.2550.0
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…