It took me one day in troubleshooting “error: 40 – Could not open a connection to SQL Server” error whenever I attempt to connect to Management Studio Express (MSE) or sqlcmd. I tried the solution suggested on Internet and eventually landed on the following solution:











