Considering the reason of your database fail, choose appropriate recovering database procedure:
If the database was damaged due to system failure or user fault, restore old database. For example, if any essential file was occasionally deleted, you can restore the database to the state when this file existed: see "Восстановление на той же БДRestoring at the Same Database".