I need to check out why a database backup failed in one of our systems.
The log says the following:
BACKUP failed to complete the command BACK
I had the same issue. Backing up the DBs with a PS.Script. The information in the log was not helpful. The cause was a timeout of my powershell script.
A setting of "$server.ConnectionContext.StatementTimeout = 0" was not helping
$ret=Invoke-Sqlcmd -Query $SQLStatement -ServerInstance $ServerName -ErrorAction 'Stop' -QueryTimeOut 600
Setting the QueryTimeOut was doing the trick.
The only information that SQL server itself captures is what you've already quoted:
BACKUP failed to complete the command XXXXXX. Check the backup application log for detailed messages.
This is all that will show up in the SQL error log (SSMS > Management > SQL Server Logs), and the Windows Application errorlog from MSSQLSERVER.
When it says "check the backup application log", it means check the log (if there is one) of whatever application actually performed the backup:
If you can't find it anywhere else, the more detailed error may not have been captured. The SSIS package may not have been configured to do detailed logging, or maybe someone ran a manual backup in the GUI but dismissed or fixed the error on-screen. You may have to find out who attempted to run the backup and ask them why it failed.
open SSMS and connect to the database go to MANAGEMENT > MAINTENANCE PLAN > pick your backup plan. > right click and view history.
or to MANAGEMENT > sql server logs.
directory location : c:\Program Files\Microsoft SQL Server\MSSQL.xx\MSSQL\LOG
Dear this error normally occur if you dont have full backup.... with some reasons if the full backup schedule didnt complete it will give this error
What you can do is either execute the full backup plan or wait till the full backup job complete successfully then automatically it will start taking hourly backups