Re: Urgent - Unable to restore/attach a MDF file
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 07/07/04
- Next message: meme: "sql raid config"
- Previous message: Learner: "Urgent - Unable to restore/attach a MDF file"
- In reply to: Learner: "Urgent - Unable to restore/attach a MDF file"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Jul 2004 11:27:49 +0530
Hi,
This restore error might be because:-
1. Mentioning wrong location or file name
2. Do not have previlage to read the backup file.
3. Might be reading the backup file from remote machine in which SQL Server
startup
account do not have access.
So check the SQL Server Startup account. If the user has got access to the
the file / folder then login to
query analyzer as SA and execute:-
RESTORE DATABASE <dbname> from disk='c:\backup\dbname.bak'
(Use Move option if required - refer books online for more information)
Attach with single MDF file
Refer sp_attach_single_file_db in books online
-- Thanks Hari MCDBA "Learner" <wantnospam@email.com> wrote in message news:MPG.1b55e0c2c1107e8c989746@msnews.microsoft.com... > Hi, > > I was having problems on my PC so i did a fresh installation. However I > had backed up my SQL database (I only have the MDF file and not the log > file). > > I have tried restoring and attaching options but nothing works :( > > I also get the error saying > > "Can not open backup device.... Device error or device off-line. See the > SQL server error log for more details. RESTORE database is terminating > abnormally". > > Please this is urgent. Will be VERY grateful for your urgent reply. > > > -- > Thanks.
- Next message: meme: "sql raid config"
- Previous message: Learner: "Urgent - Unable to restore/attach a MDF file"
- In reply to: Learner: "Urgent - Unable to restore/attach a MDF file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|