MS SQL Database Stuck Restoring

When an MS SQL Server database is being restored, and either errors out or times out, and the staus of "Restoring" persists, even after a restart and a clear failure of the Restore operation, use the following to ge things back up, quick 'n dirty style.

  1. Stop MSSQLSERVER and related services.

  2. Open your DATA folder, or wherever the .LDf and .MDf files are stored (of the DB being restored).

  3. Move the files to another folder

  4. Restart SQLSERVER service (and related services).

  5. Start my MS SQL Management Studio and delete the database in question.

  6. Make sure the *.LDF and *.MDF files are gone from their original location folder.

  7. A. Delete the database in question and attempt the restore from scratch; OR:
    B. Take the database Offline, copy the .LDF and .MDF files into the DATA directory (from Step 3).

  8. Bring database Online.

Source Source