You administer a Microsoft SQL Server 2016 instance that has several SQL Server Agent jobs configured.
SQL Server Agent jobs fail, the error messages returned by the job steps are truncated.
The following error message is an example of the truncated error message:
"Executed as user CONTOSOServiceAccount. …0.4035.00 for 64-bit Copyright (C) Microsoft Corp 1984-2011. All rights reserved. Started 63513 PM Error 2012-06-23 183536.87 Code 0XC001000E Source UserImport Description Code 0x00000000 Source Log Import Activity Descript… The package execution fa… The step failed."
You need to ensure that all the details of the job step failures are retained for SQL Server Agent jobs.
What should you do?
A . Expand agent logging to include information from all events.
B . Disable the Limit size of job history log feature.
C . Configure event forwarding.
D . Configure output files.
Answer: D
Explanation:
When you have a multiple-step job, then log all steps against a single file. Check the ‘Append output to existing file’ checkbox for all steps in the job that execute after the initial step. This results in a log file with all of the job steps from the last job execution. Each time the first step executes (each time the job is kicked-off) the file will be overwritten, so we have a record of the last set of output.
References: https://www.mssqltips.com/sqlservertip/1411/verbose-sql-server-agent-logging/
Leave a Reply