I have a job on my server with email notification on success and failure. The mail notification has the subject as
[The job succeeded.] SQL Server Job System: 'XYZ' completed on \123.
or
[The job failed.] SQL Server Job System: 'XYZ' completed on \123.
Now I have migrated the job to another server but the mail notification is like
SQL Server Job System: 'XYZ' completed on \456.
Why does the subject not contain [The job succeeded.] or [The job failed.]? How to get it back in the subject line of email notification?
succeededorfailedin the subject line itself, onlycompleted. Is there any difference in the job definitions or other configuration between the servers? How exactly did you "migrate" the job to the second server?