SQL Server 2012: Login to PC-NAME\SQLEXPRESS works, but not to local/(local)

mosquito87 picture mosquito87 · Feb 22, 2013 · Viewed 9.6k times · Source

I'd like to login to my SQL Server 2012 Express with servername local or (local) but it doesn't work.

The only servername which works is PC-Name\SQLEXPRESS.

local/(local) has to work somehow because I have to use the following connection string:

Data Source=localhost;Initial Catalog=...

Answer

mosquito87 picture mosquito87 · Feb 23, 2013

I've reinstalled it and ensures to select "default instance" instead of "named instance" during the installation. Now everything is fine again.