Hello friends.
Please help me to solve my problem. I am using sql server 2008. When I try to access it recieve the following error: "Cannot connect to localhost ". So my question is, how to repair sql server?
Hopefully someone will be able to help me with this.

Are all of the SQL related services currently running (check by running services.msc)? What is the name of your SQL instance and how are you trying to connect? Please provide a connection string if you have it.

Hello,
You probably need to set SQL Server to allow "remote" connections. If it useless you can try this app http://www.mssqlserver.repair/ It restores the contents of SQL databases.

I hope this will help you,
Alec

I want to say thank you for taking the time to share how to go about fixing this.