SQL Agent Maintenance Plan

Posted by John Liu on Friday, September 11, 2026

SQL Agent Maintenance Plan runs SSIS package. When troubleshooting maintenance plan job error, following query might help to view detailed error message as the job history might not contain these information.

SELECT TOP 20 *
FROM msdb.dbo.sysmaintplan_logdetail
ORDER BY start_time DESC;