25

I have a development laptop with SSMS Express 2012 with a 2012 db instance and a 2008 db instance. Have been using this configuration for over a year. Suddenly I am unable to use the restore wizard. The wizard will pick the backup file but when I select the "Files" option on the upper left to designate the location of the MDF and LDF the dialog hangs. I tried a repair, no luck.

Michael Green
  • 24,839
  • 13
  • 51
  • 96
Pat
  • 351
  • 1
  • 3
  • 3
  • 1
    Why are you not using T-SQL script to restore ? Wizard does not have proper wisdom any more and so it hangs – Kin Shah Feb 27 '14 at 01:53
  • 1
    I have seen the restore wizard hang when an incorrectly formed backup files was selected in the past. Do a RESTORE HEADERONLYand RESTORE VERIFYONLY see if it works. Also, use T-SQL like @marko suggested. – RK Kuppala Mar 31 '14 at 17:24

5 Answers5

62

@Pat I have been facing the same issue for a long time, but a few minutes ago found way around it.

First of all DO NOT try to restore by right-clicking on an empty database. What you need to do is right-click on Databases and from the menu select Restore Database. In that UI you can use the Files option and the UI won't freeze.

Note: By doing this SQL will create your DB and restore into it in one go.

Hope it helps.

Andriy M
  • 22,983
  • 6
  • 59
  • 103
pi4r0n
  • 741
  • 5
  • 2
3

You can try to restore via T-SQL. E.g.:

RESTORE DATABASE YourDatabase
FROM DISK = 'C:\BackUp\Full.BAK'
WITH
      REPLACE   -- Overwrite DB - if one exists
    , NORECOVERY    -- Use if DIFFs / T/Logs to recover
--      , RECOVERY  -- Use if NO more files to recover, database will be set ready to use
    , STATS = 10    -- Show progress (every 10%)
GO

As for the wizard error you can try to use Windows Event Viewer to try troubleshooting

Marko Krstic
  • 141
  • 5
2

I too had SSMS freeze immediately after selecting a database to restore.

The fix for me was simple, I just had to run SSMS as an Administrator.

I hope this helps someone else.

Ken Haynes
  • 21
  • 2
1

I had this same problem today, trying to restore several files of database X as a new database set as the destination.

The problem in my case was that the backups were for a database X (Full+Diff+Logs), and there already was database X on the server, but the database was offline at the moment. That caused SMSS to freeze every time. So to solve this, I just temporarily brought database X back online, done the restore to a new database, and then took database X back offline.

Hopefully this might help someone experiencing this issue. If the Restore Database dialog hangs and is not responding, check if there isn't an offline database with the same name as the one in the backups.

Tom Pažourek
  • 423
  • 5
  • 18
0

I have also had this problem even when not using the wizard, using a script similar to Marko's running through SSMS it would freeze and crash the machine. The way I resolved it was to drop the DB first, then I found the .ldf to still be in the target directory, removed the .ldf from the target directory and was able to restore successfully.

Shiloh
  • 101