What version of MS SQL are you using?
Backup the database if at all possible before trying any of this, I'm not responsible if you nuke your data!
You need to login to the database as the sa user and perform some maintenance.
EXEC sp_resetstatus 'database_name';
ALTER DATABASE database_name SET EMERGENCY;
DBCC checkdb('database_name');