Backup Job Fails, but Command Works in Query Analyzer
From: michael [multnomah] (wewill_at_reclaimourfuture.net)
Date: 04/16/04
- Next message: Nobody: "Re: Backup Job Fails, but Command Works in Query Analyzer"
- Previous message: Mark: "Retrieving Result Set from Stored Procedure in Function"
- Next in thread: Nobody: "Re: Backup Job Fails, but Command Works in Query Analyzer"
- Reply: Nobody: "Re: Backup Job Fails, but Command Works in Query Analyzer"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 13:17:18 -0700
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_200404161125.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???
- Next message: Nobody: "Re: Backup Job Fails, but Command Works in Query Analyzer"
- Previous message: Mark: "Retrieving Result Set from Stored Procedure in Function"
- Next in thread: Nobody: "Re: Backup Job Fails, but Command Works in Query Analyzer"
- Reply: Nobody: "Re: Backup Job Fails, but Command Works in Query Analyzer"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|