SolvedPrivate

Weekly full backup of multiple SQL databases fails to backup a single database

Posted on 2013-10-29
3
23 Views
Last Modified: 2016-02-11
Hello Experts

We have a single SQL server with a single instance of SQL on it. This server has > 50 databases on it. Each Tuesday morning we run a backup maintenance task that takes a full backup of each database and every other day of the week another job runs which takes a differential backup.

The problem I have is that the full backup job backs up all the databases on the server with one exception - the xyz database. This database is good and in use. Every Tuesday morning we get an error similar to, or the same as, this:

Date: '29/10/2013'
Time: '01:14:34'
Event: '3041'
Type: 'ERROR'
Category: 'Backup'
User: 'NT AUTHORITY\SYSTEM'
Source: 'MSSQL$WEB_SC'
Computer: 'servername'
Message: 'BACKUP failed to complete the command BACKUP DATABASE xyz . Check the backup application log for detailed messages.'
Data: 'server \ W E B _ S C xyz'

The backup application log has nothing in it at all and the only other error that we get is this:

Date: '29/10/2013'
Time: '01:14:28'
Event: '17063'
Type: 'ERROR'
Category: 'Server'
User: 'NT AUTHORITY\SYSTEM'
Source: 'MSSQL$WEB_SC'
Computer: 'servername'
Message: 'Error: 50000 Severity: 16 State: 1 Full backup failed for database: '
Data: 'server \ W E B _ S C m a s t e r '

The differential backups run fine. If I run a manual full backup of this database it works OK.

We are running SQL Server 2008 R2 with SP1. All help most appreciated.
0
Comment
Question by:citicus
  • 2
3 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 39609199
" If I run a manual full backup of this database it works OK."

How is the backup running other than manual? My guess is - Scheduled Maintenance Plan right? and if it's like that what account/login is that one starting at? Can you check SQL Server Agent Service and see if that account has sufficient rights?

What account/login are you using when " If I run a manual full backup of this database it works OK."?
0
 

Author Comment

by:citicus
ID: 39609258
Your guess is correct re the scheduled maintenance plan.

When I run the manual backup I am logged in as myself - a local/domain/SQL admin.

The job runs as NTAUTHORITY\SYSTEM - would you mind telling me how I can check if the SQL Server Agent Service has the rights it needs? I think it will have as the database that is failing to be backed up is a copy of one that is being backed up OK.
0
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 39609291
"I think it will have as the database that is failing to be backed up is a copy of one that is being backed up OK. "

In my opinion that assumption is not 100% always true.

Aside of that
"When I run the manual backup I am logged in as myself - a local/domain/SQL admin."
I presume the
"...database that is failing to be backed up is a copy of one that is being backed up OK"

so that backup was already completed - maybe one file is already open because the backup is going against it and needs to finish before the other one starts - in this case will confirm that the authority is not an issue and remember Maintenance Plans as SSIS as well and by default I believe Microsoft set it to run 4 tasks in parallel. In your case this means you need to serialize your backups/check backups if authority/rights is not an issue.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now