SQL Server 2008 Unable to Access Database (Object Explorer) Issue

1. Execute this SQL statement first
Select name, state_Desc from sys. databases where name=' Database name 2. Find services under the control panel -> Find the SQL SERVER service and restart the service
3. Execute the SQL again
Select name, state_Desc from sys. databases where name=' Database name 4. Refreshing the database allows access to previously inaccessible databases.