restore backup : access denied

restore backup : access denied

Post by John A Gra » Sat, 30 Aug 2008 02:38:45


box # 1 : SQL Server 2005 Developer Edition , mixed-mode , logged-in as
Windows log-in account ( BUILTIN\Administrators ) :

create a .bak file


box # 2 : SQL Server 2005 Express Edition , Windows authentication mode ,
logged-in as Windows log-in account ( BUILTIN\Administrators ) :

attempt to restore .bak file to a new db , but on attempting to select the
backup set ( by checking checkbox ) receive "Access is denied" error

What could be going on ?
 
 
 

restore backup : access denied

Post by Russell Fi » Sat, 30 Aug 2008 03:45:22

John,

Where is the backup file stored? Apparently box # 1 has access, but box #
2 does not. Is the backup file on box # 1 or somewhere on a network? If on
the network, how did box # 1 get access to that location?

I understand that you logged in through BUILTIN\Administrators, but under
what account is SQL Server running? Is it Local System? NT
Authority\Network Service? Et cetera? If so, that is a login local to the
box it runs on and does not have rights on some other box. Ideally (I don't
know your setup of course) the SQL Servers should be run as a domain account
that can be granted the needed rights to the network, other boxes, etc.

Here is the Books Online consideration of your service account choices and
the impact of each:
http://www.yqcomputer.com/ (SQL.90).aspx


RLF

 
 
 

restore backup : access denied

Post by Uri Diman » Mon, 01 Sep 2008 16:31:11

John
In addition to Russell's comment
Can you issue a backup from one box to another like

BACKUP DATABASE dbname TO DISK =
N'\\servername\shared_folder\dbname.BAK'

Note: make sure that box 1 'sees' the box 2 via shared folder