![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello. I am completely stuck as to why my backup job is failing. I have a job which backs up all user databases. All of the user databases get backed up no problem, except for one. That one fails with: BackupDiskFile::OpenMedia: Backup device 'D:\BACKUP\EMPMART_PRD\EMPMART_PRD_db_200404161121 .BAK' failed to open. Operating system error = 32(The process cannot access the file because it is being used by another process.). BUT, if I run the same exact command that failed in Query Analyzer: BACKUP DATABASE [EMPMART_PRD] TO DISK = N'D:\BACKUP\EMPMART_PRD\EMPMART_PRD_db_20040416112 5.BAK' WITH INIT , NOUNLOAD , NOSKIP , STATS = 10, NOFORMAT The backup succeeds every time. What is causing the backup job to fail, but not the command when run separate from a scheduled job? There is no anti-virus or other software that might be locking the file. It is not a drive space or permissions issue because the same command works in Query Analyzer. I am stuck??? |
![]() |
| Thread Tools | |
| Display Modes | |
| |