Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BACKUP failed to complete the command BACKUP DATABASE

BACKUP failed to complete the command BACKUP DATABASE ... WITH DIFFERENTIAL. Check the backup application log for detailed messages.

I see this message in SQL Server log file viewer. Where is the backup application log?

like image 270
TN. Avatar asked Jun 28 '10 09:06

TN.


2 Answers

To get detailed information about the problem:

  1. Go to SQL Server Management Studio -> SQL Server Agent -> Jobs
  2. Right click the name of the job which causes troubles and select "View History"
  3. In Log File Viewer window, select error end view detailed error message.

In my case, the problem was in the next error:

error: "BACKUP DATABASE WITH COMPRESSION is not supported on Web Edition (64-bit). BACKUP DATABASE is terminating abnormally."

like image 103
Dmitriy Reznikov Avatar answered Sep 22 '22 10:09

Dmitriy Reznikov


I think this means the Application Event Log on the Server.

Are using a TSQL script to execute this backup job via SQLAgent? If so, you need to specify an Output file on the job step that contains the BACKUP TSQL.

In the Job Step on the left hand pane there should be General & Advanced. Click on Advanced and under title Transact-SQL script (T-SQL) there is an output file box. Enter any valid filename here (it doesn't need to exist, it will create it on the fly).

Once you have done this re-run your job and further detailed error messages will be written to this file.

UPDATE:

Have you previously performed a FULL database backup for this database? A FULL backup needs to exist before a DIFFERENTIAL backup can be performed.

like image 36
codingbadger Avatar answered Sep 25 '22 10:09

codingbadger