SQL Server Job – Where Does PowerShell ‘Log to Table’ Save Logs

powershellsql server

enter image description here

After selecting the "log to table" option and running the job, when I come back to this screen and select View, I can see the output of the powershell script in a text file.

The only job step is a call to a powershell script that takes a string as input and prints it after performing a toUpper

However, where are these logs being stored?

Best Answer

A simple press on the F1 key for the help would reveal, that the execution result is stored in the sysjobstepslogs table of the msdb database.