Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I am running SQL server 2008 and trying to restore from a backup file.

Note: the backup file and folder and read/write access to "everyone". Running the command as "master"

Running

 RESTORE FILELISTONLY FROM DISK = 'D:\path'

Gives the following error:

Msg 3201, Level 16, State 2, Line 1
Cannot open backup device 'D:\path'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 1
RESTORE FILELIST is terminating abnormally.

Thanks, Bruce

share|improve this question

migrated from stackoverflow.com May 29 '13 at 2:18

This question came from our site for professional and enthusiast programmers.

    
You mean D:\path\filename.bak, don't you? I found this syntax in an old post here and more documentation here. Alternatively, have you tried restoring through the GUI to see whether you can get access that way? –  criticalfix May 28 '13 at 18:04
add comment

1 Answer 1

You need to actually specify the backup file in the path. It's not the file list in an NTFS directory, as it seems may be your understanding. It's the file list of the database files in the backup file.

What you should be doing is:

restore filelistonly
from disk = 'D:\path\backupfile.bak';
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.