Every night at the same time I receive some mails like that:
DESCRIPTION: Error: 50000 Severity: 16 State: 1 [ERROR]:DWHDumpProcess_XXX job is either failed or not in good state. Please check. Return Code (null)
sent by different DWH SQL servers.
The problem is what there is no job on the server which has a name DWHDumpProcess_XXX. I've checked all mail-related tables in MSDB and can't find a possibility to find a job which sends an information. Do one of you have an idea how I can verify the sender? (accordingly to the email header it's an SQL server in question, not a SMTP-faked email)
select top 100 * from msdb.dbo.sysmail_sentitems where body like '%DWHDumpProcess%'
Also, it's worth to check if there is such message in sys.messages table.
– Andrey Samykin Nov 29 '21 at 11:24sysmail_sentitemslogs Notification Emails on Job failures. Have you actually checked the SQL Server Agent - Jobs to see if there's one with a similar name to the error email you received? Otherwise, as Michael suggests, check your Log file which should essentially be a text file stored in the directory where your SQL instance is installed to. – J.D. Nov 29 '21 at 12:55DWHDumpProcess_XXXbe a stored procedure or some other concept of "job" that isn't a SQL Agent job? – AMtwo Nov 29 '21 at 12:57