After writing my last post I remembered that in the past I got a related error to this problem but with a different cause and solution. So I decided to emulate the error in my lab environment and make a second part of this topic.
I remember that on occasion, in order to be faster, I copied all the job configuration text from of my blog and pasted in the BackupFull step job window. However when I try to run I got a similar error:
SQL Server Scheduled Job ‘Backup BizTalk Server (BizTalkMgmtDb)’ (0x4020953E49DEFA43B8FEC18D6AD9B062) – Status: Failed – Invoked on: 2013-11-11 17:45:00 – Message: The job failed. The Job was invoked by Schedule 9 (MarkAndBackupLogSched). The last step to run was step 2 (BackupFull).
Again the error message doesn’t help us much, so what you should do is go to the Backup BizTalk Server job history:
- Right click in “Backup BizTalk Server (BizTalkMgmtDb)” job and select “View History” option
And try so see if you can obtain more information about the error.
Unlike the event viewer and the error that I put in the previous post, in this case the log history show as much more information:
Date 11/11/2013 17:45:00
Log Job History (Backup BizTalk Server (BizTalkMgmtDb))
Step ID 2
Job Name Backup BizTalk Server (BizTalkMgmtDb)
Step Name BackupFull
Executed as user: NT SERVICE\SQLSERVERAGENT. Incorrect syntax near ‘´’. [SQLSTATE 42000] (Error 102) Unclosed quotation mark after the character string ‘ /* location of backup files */ ‘. [SQLSTATE 42000] (Error 105). The step failed.
The copy of the text from my blog brought a wrong ASCII format transforming the single quotation mark character in an accent (´).
All the parameter of the sp_BackupAllFull_Schedule must be placed between single quotation marks:
'd', 'w' and so on
- Location of backup files:
Fix the job to ensure that all the parameters of the sp_BackupAllFull_Schedule is between single quotation marks.