Solved

Restore  file from BAK error

Posted on 2007-11-16
6
1,054 Views
Last Modified: 2012-06-22
I just received a sql backup file from what I believe is sql 2000.  when I select the file in the restore process I get this error.  I'm running SQL Server Express 2005 on my laptop.


Cannot open backup device 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\Burrwolf_11142007.bak'. Operating system error 5(Access is denied.).
RESTORE FILELIST is terminating abnormally. (.Net SqlClient Data Provider)

Any help would be appreciated
thanks
0
Comment
Question by:keschuster
  • 3
  • 3
6 Comments
 
LVL 17

Expert Comment

by:Chris Mangus
ID: 20302380
Error 5 usually indicates a lack of permissions to the file.  Can you verify that the account being used to restore the database has access to that directory?
0
 

Author Comment

by:keschuster
ID: 20302397
Sorry newbie here - where do I do that in 2005?
0
 
LVL 17

Accepted Solution

by:
Chris Mangus earned 500 total points
ID: 20302406
This would be outside of SQL Server.  When you connect to the SQL Server via SQL Server Management Studio, what account are you using, a SQL account or a domain account?

If a domain account, it will need at least read permission on your backup folder.  If you're using a SQL account when you connect then the account that your SQL Server uses to start up will need read permission to the folder.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:keschuster
ID: 20302423
I'm loggin in with my domain account (windows authentication),  everything is on my laptop.  I have full access to it - I copied it there.
0
 
LVL 17

Expert Comment

by:Chris Mangus
ID: 20302437
Has the SQL Server service login account been changed recently?

I would try adding the SYSTEM user with full permission to your backup folder.

Also, check this link for more info as I am leaving my computer for the day...:  
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=283827&SiteID=1
0
 

Author Comment

by:keschuster
ID: 20302494
That was it.  Once I have the system user more permissions I coulde read the file.  That link was perfect
thanks
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now