VastSQL
SSC-Dedicated
Points: 36097
More actions
April 16, 2014 at 8:21 am
#306489
Hi Experts,
How can i get the details of multiple jobs like name,last run date & time,last run status ,next run etc.
Thanks in Advance.
spaghettidba
SSC Guru
Points: 105732
April 17, 2014 at 4:46 am
#1706699
You can query the sql agent job tables in msdb
Or you can use a tool such as sqljobvis
-- Gianluca Sartori
April 17, 2014 at 7:33 am
#1706753
BTW, there's an undocumented system extended stored procedures that happens to do exactly what you're after:
EXEC xp_sqlagent_enum_jobs 1, SUSER_SNAME
djj
SSCoach
Points: 18831
April 17, 2014 at 9:37 am
#1706819
Look at msdb..sysjobhistory and msdb..sysjobs
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply