Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Access denied when restoring backup

Author  Topic 

mercure
Starting Member

3 Posts

Posted - 2008-05-07 : 10:40:08
Hi everybody, I've a 2003 server which I've installed on SQL Server Express Edition. I've 2 partitions. My Problem when I want to restor a backup from d:/, an error indicating me that the SQL can't access to backup file and it access denied ???!!.
Does anyone have an idea about this problem.
Best Regards.

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-05-07 : 15:16:12
Ensure sql service account has permission to access the file. How did you restore db by the way?
Go to Top of Page

mercure
Starting Member

3 Posts

Posted - 2008-05-08 : 02:43:57
Can you tell me how to ensure the permissions fo the account.
I've used the following script to restore :
declare @f sysname
set @f=N'D:\ValidateTh\BackUpDbSql\theriaque_dst.bak'

RESTORE DATABASE [THERIAQUE_DEST]
FROM DISK = @f
WITH FILE = 1, NOUNLOAD, REPLACE
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-05-08 : 22:18:55
Find out sql service account in services applet and check file access permission in windows explorer.
Go to Top of Page
   

- Advertisement -