Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 can t restore a DB

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2007-07-24 : 10:04:47
Error: Directory lookup for the file ...... failed

Hi there,
We have a DB on a server, we backed up the DB using: SSMS by selecting the DB in question, tasks, back up, then back up the DB to a file called my Backup

Then to restore the backed up database on my server, I do this in
SSMS: in Databases I do: Restore,
in To Database: I specify: MyBackedUpDatabase
I check : from device, then I specify the path to my file back up
called : backup

But I get this error:


Restore failed for Server 'ABC'. (Microsoft.SqlServer.Smo)


System.Data.SqlClient.SqlError: Directory lookup for the file "D:\Databases\Microsoft SQL Server\MSSQL.1\MSSQL\Data\OrleansEcomm.mdf" failed with the operating system error 21(error not found). (Microsoft.SqlServer.Smo)


Merci (thank)

nr
SQLTeam MVY

12543 Posts

Posted - 2007-07-24 : 12:16:45
Does
D:\Databases\Microsoft SQL Server\MSSQL.1\MSSQL\Dataexist on your server?


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-07-24 : 14:20:05
I suggest you try restoring "manually" using the process here:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=RESTORE%20syntax%20/%20example

Kristen
Go to Top of Page
   

- Advertisement -