SQL Server – How to See Entire Job Step Output

sql serversql-server-agent

We have a SQL Agent job running some PowerShell, which creates a pretty long output (it has robocopy output, among other things).

In the SQL Agent Job History, we only see the first 1,000 characters or so of this output.

  1. Is there another place we can look that will have the entire output?
  2. Is there another approach that should be used to see the full output?

Best Answer

In the job step advanced properties, send output to a flat file by inputing the "Output file" location and filename. That should include all of your output for later viewing.

Or, if you want all of the output directly in the history of the job, you can select the check box "Include step output in history". It'll use history entry rollover to include all of the data. That might be a little cumbersome in looking at after-the-fact, though, but still effective.