USE TestDUTASJobSchedule;
GO

-- 1. Check today's job status
SELECT JobName, Status, ErrorMessage 
FROM dbo.JobExecutionHistory 
WHERE RunDate = CAST(GETDATE() AS DATE)
AND JobName = 'DEVL_WEEKLY_DTSGSID1';

-- 2. Mark DTSBX305 as manually overridden
EXEC dbo.usp_ForceComplete 'DEVL_WEEKLY_DTSGSID1', 'Neeraj.Kumar';

-- 3. Verify the override
SELECT JobName, Status, OverrideBy, OverrideDate
FROM dbo.JobExecutionHistory 
WHERE JobName = 'DEVL_WEEKLY_DTSGSID1' AND RunDate = CAST(GETDATE() AS DATE);