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 2000 Forums
 SQL Server Administration (2000)
 Backup MSDE database fails over network

Author  Topic 

d.docouto
Starting Member

5 Posts

Posted - 2005-07-11 : 13:54:39
I am attempting to backup my database to a network shared folder. The folder does have the appropriate permissions, however if I try to backup the database it fails. The error message that appears in the error log is as follows:

BackupDiskFile::CreateMedia: Backup device '\\COMPUTERNAME\SharedDocs\Backup\Jul1105.bak' failed to create. Operating system error = 5(Access is denied.).

BACKUP failed to complete the command BACKUP DATABASE TestDatabase TO DISK = '\\COMPUTERNAME\SharedDocs\Backup\Jul1105.bak' WITH STATS

If I attempt to backup the same file to the local computer, it works no problem. I know for sure, the permissions are fine. Is there something I should be doing different to backup over a network?

Thanks in advance for the help everyone!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-07-11 : 15:28:22
The permissions aren't correct though. That's why you are getting Access is denied error. How is the backup command being issued? Via a job scheduler? Via osql.exe?

Tara
Go to Top of Page

d.docouto
Starting Member

5 Posts

Posted - 2005-07-11 : 16:24:00
BACKUP DATABASE TestDatabase TO DISK = '\\COMPUTERNAME\SharedDocs\Backup\Jul1105.bak' WITH STATS

I am using the osql.exe command. The permissions are Everyone, Full control
Go to Top of Page

TimS
Posting Yak Master

198 Posts

Posted - 2005-07-11 : 17:05:11
Have you verified BOTH the NT folder permission AND the NT Share permissions?
If the file Jul1105.bak already exists; delete it, or rename it, if you can.

Tim S
Go to Top of Page

d.docouto
Starting Member

5 Posts

Posted - 2005-07-11 : 17:30:47
I have checked the permissions and I have Everyone to full control for both share and folder permissions
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2005-07-11 : 18:22:23

The problem is most likely that the account being used as the SQL Server service account does not have access to the share or folder.

If the SQL Server service account is local to your machine or is the NT system account, you will not be able to access a network share.



CODO ERGO SUM
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-07-11 : 18:22:45
From Start..Run, can you get to this without having to type in anything about credentials:

\\COMPUTERNAME\SharedDocs\Backup

When you connected via osql.exe, did you use the -E switch or did you use -S and -P?

Tara
Go to Top of Page
   

- Advertisement -