What is the difference between these 2?
msdb.dbo.sysjobhistory vs msdb.dbo.backupset
The reason I'm asking is because I have a weird situation here - only 1 day of backup history is insysjobhistory.
I do have a maintenance job that calls EXEC msdb.dbo.sp_delete_backuphistoryand the value passed in is 30. This job runs once a week on Sunday. Today is Thursday, however, I only have 1 day's worth of history inmsdb.dbo.sysjobhistory.
1) I do have 30 days of historical data in msdb.dbo.backupset
2) I only have 1 day of historical data in msdb.dbo.sysjobhistory
Question 1) What is the difference between msdb.dbo.sysjobhistory andmsdb.dbo.backupset?
Question 2) how do I increase the number of days in msdb.dbo.sysjobhistory?
Edit: sysjobhistory is on SQL Server Agent? However, I have not restarted SQL Server Agent on a daily basis; how will my history be missing?
On SQL Server Agent Properties, I have:
Maximum job history (in rows): 1000
Maximum job history rows per job: 100