I have installed named instance of the SQL Server, later I wanted to use it as default instance. So I did this:
- Open
SQL Server Configuration Manager - Click
SQL Server Network Configuration - Click
Protocols for INSTANCENAMEyou want to make available (i.e. SQLExpress) - Right-click
TCP/IPand clickEnabled - Right-click
TCP/IPand go toProperties- Go to the
IP Addressestab - Scroll down to the
IPAllsection - Clear the field
TCP Dynamic Ports(i.e. empty/blank) - Set
TCP Portto1433 - Click
Ok
- Go to the
- Go to
SQL Server Services - Right-click your
SQL Server (INSTANCENAME)and clickRestart

This made my the named instance listen on the default port. Then I did the same for the default server and I changed TCP port to the 1434 so they don't interfere. I restarted the computer but still when I login through SQL Server Management Studio and give localhost as the server name I still access the old default server.
Why is it so, how to fix it?