When I try to connect from an application to a SQL Server environment on the same machine, the connection fails. I tried to telnet to following
telnet 127.0.0.1 1433
but I got following message:
Could not open connection to the host, on port 1433: Connect failed
Note: When I tried to ping, it was successful.
I need to enable port number 1433 on SQL Server. I am using SQL Server 2008 client (management studio) and SQL Server 2008 Express engine.
The YouTube video How To Connect SQL Server with Internet solved my problem, at the 5:32 mark.
Steps to enable port number 1433 on MS SQL Server 2008: