SQL database is in RESTORING mode

Please suggest the net step:

My database stuck in restoring state.
Msg 4333, Level 16, State 1, Line 1
The database cannot be recovered because the log was not restored.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

How did you get to this situation

I am restoring the database from .BAK file. I have full backup of my database.

How are you restoring it?

Do you have multiple backups?

Did you cancel the RESTORE process in the middle?
If that is the case then you need to delete the database and restore it again with the fresh backup.

Using SSMS.

Yes, I have.

I did not cancel the RESTORE Process. It is still in the same state.

Do you just have a full backup or additional log backups to be restored?

Restore the first backup with Restore with NORECOVERY option and last with Restore with Recovery. I guess, you are selecting the Restore with Recovery option with the first backup. It could be a reason of getting this error.

1 Like

Yes, It fixed the RESTORING issue but, I am unable to access my database.Now, database is in Suspect mode.

Do not detach database in this situation. Set it into emergency mode
ALTER DATABASE DB_NAME SET EMERGENCY
DBCC CHECKDB (‘DB_NAME’)
Set database into single user mode:
ALTER DATABASE DB_NAME SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CHECKDB (DB_NAME, REPAIR_ALLOW_DATA_LOSS)
Note: be careful while using repair allow data loss option. With this, you may lose some data.
After that, you need to set your DB in multi-user mode:
DBCC CHECKDB DB_NAME SET MULTI_USER

Thank you. I read about repair allow data loss option. Don’t want to try that.

you should at least run this and check for any errors.

DBCC CHECKDB (‘DB_NAME’)

Yes, I agree with Ahmad. You should run DBCC CHECKDB to find the database inconsistency. Repair allow data loss is last resort to fix this issue. You can also check more references available on web related to your issue.

Run DBCCCHECKDB command or try REBUILD and REPAIR option if found any error in Windows Error log. Here are some more important points you can consider to repair this error:
https://www.sqlrecoverysoftware.net/blog/sql-database-in-recovery-mode.html

I have already repaired the database using Stellar Repair for MS SQL. Your software did not work....