Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Restore  file from BAK error

Posted on 2007-11-16
6
Medium Priority
?
1,068 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

722 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