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)
NOTE:- i am 2 times installed sqlserver .. but same problem is comeing .
pls tell the solution

Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jun 27, 2013, 10:26 PM EDT
swat2 reputationPosted Jul 5, 2013, 11:09 PM EDT
http://blog.sqlauthority.com/2008/08/09/sql-server-fix-error-1326-cannot-connect-to-database-server-error-40-could-not-open-a-connection-to-sql-server/
Ravi ShekharRank #673 · 3.6K reputationPosted Jul 9, 2013, 10:58 PM EDT
Dont select multiple path in path selection box.
Jignesh TrivediRank #16 · 50.3K reputationPosted Jul 9, 2013, 11:58 PM EDT
hi,
i think this problem is due to server name is wrong while connecting to the server.
Please refer below link it might help you to configure SQL Server
http://www.sqlserverclub.com/essentialguides/how-to-install-sql-server-2008-step-by-step-guide.aspx
http://technet.microsoft.com/en-us/library/bb510664(v=sql.100).aspx
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 12:08 AM EDT
Please refer the below link
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c488cf76-2515-440f-b3f8-9cfad689c5b6/named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 10, 2013, 12:09 AM EDT
http://blog.sqlauthority.com/2008/08/09/sql-server-fix-error-1326-cannot-connect-to-database-server-error-40-could-not-open-a-connection-to-sql-server/