EXEC sp_resetstatus 'ContentDBname'
ALTER DATABASE ContentDBname SET EMERGENCY
DBCC checkdb('ContentDBname')
ALTER DATABASE ContentDBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ('ContentDBname', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE ContentDBname SET MULTI_USER
i executed the above commands and it worked for me