USE [msdb]GOEXEC msdb.dbo.sp_set_sqlagent_properties @jobhistory_max_rows=2000, @jobhistory_max_rows_per_job=200GORegards, Andras