[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 707
  • Last Modified:

Db restore failed

Hi
I'm trying to restore a db from backup.

When I just tried, I got this message: "failed with the operating system error 21(The device is not ready.). (Microsoft.SqlServer.Smo)"

I restored a db without problems yesterday.

One thing that's changed is my PC's name, which changed that yesterday because of a conflict on the network.

Any idea what the problem is?

Thanks.
Co
0
Leprechaun
Asked:
Leprechaun
  • 2
1 Solution
 
rickchildCommented:
Sounds like you may have answered your own question, the change in PC name could have affected this, particularly if the backup is on the network.

Are you restoring from File or from Backup Device?
0
 
rickchildCommented:
See here:  http://www.sqlservercentral.com/Forums/Topic361087-357-1.aspx

By default it will try to restore to the last path, change this in Options Tab under Restore As.
0
 
jorge_torizCommented:
Verify if sql server has access to the physical path of this query:

RESTORE FILELISTONLY
FROM DISK = 'C:\YourBackup.bak'
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now