Cannot connect to Microsoft SQL server

view story

http://serverfault.com – I have downloaded Microsoft SQL Server 2008 and also Microsoft SQL Server R2. My server name is local. When i try to connect, it shows the following error: Cannot connect to (local). =================================== A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient (HowTos)