SQL Backup 4.5 job attempting to create file twice
shawnnwf
Posts: 16
I have a transactional log backup job running every 2 hours on my FULL recovery databases. There are only two on this particular server. On one of the databases I get the error.
7/17/2007 6:15:00 AM: Error 510: Backup file exists. Will not overwrite. File name: (\\share\sqlbackups\server\MyDB_20070717_061500.sqb)
It is creating the backup file before processing the databases, then attempting to create it again. On the times where it succeeds, I see that two files are there for the database. I cannot figure out why it is creating two files. This is the same code used on other servers and it never has functioned like this.
I have tested the cursor that is being used to gather which databases to backup and the DB in question only gets listed once. I am not sure what else to test at this point. Any help would be appreciated.
7/17/2007 6:15:00 AM: Error 510: Backup file exists. Will not overwrite. File name: (\\share\sqlbackups\server\MyDB_20070717_061500.sqb)
It is creating the backup file before processing the databases, then attempting to create it again. On the times where it succeeds, I see that two files are there for the database. I cannot figure out why it is creating two files. This is the same code used on other servers and it never has functioned like this.
I have tested the cursor that is being used to gather which databases to backup and the DB in question only gets listed once. I am not sure what else to test at this point. Any help would be appreciated.
Comments
This only happens when the agent runs the job. I am out of ideas.
The files seems to be just a few seconds off from each other (when they work) and exactly the same when the backup fails. The funny thing is that this is only happening with one of the databases of the two that are in Full recovery mode.
I believe there was a sort of 'ghost' job running that could not be seen in MSDB or the agent and was causing the issue.