11-25-2015 01:59 PM - edited 03-01-2019 09:19 AM
Is there a way to find out who it was that enabled override dependecies for a specific job?
Solved! Go to Solution.
11-25-2015 02:33 PM
Hi Paul,
The information you are looking for can be found within the msglog table, so try this query below:
SELECT jobmst.jobmst_prntname, jobmst.jobmst_name, msglog.* FROM msglog
JOIN jobmst ON jobmst.jobmst_id = msglog.jobmst_id
WHERE
msglog.msglog_text LIKE '%sent request to override%'
and msglog.msglog_crtdt >= getdate() - 7 -- this looks back the past 7 days
order by msglog.msglog_crtdt
BR,
Derrick Au
11-25-2015 02:33 PM
Hi Paul,
The information you are looking for can be found within the msglog table, so try this query below:
SELECT jobmst.jobmst_prntname, jobmst.jobmst_name, msglog.* FROM msglog
JOIN jobmst ON jobmst.jobmst_id = msglog.jobmst_id
WHERE
msglog.msglog_text LIKE '%sent request to override%'
and msglog.msglog_crtdt >= getdate() - 7 -- this looks back the past 7 days
order by msglog.msglog_crtdt
BR,
Derrick Au
11-30-2015 07:20 AM
Thanks for the query. This gives me almost everything I need. Except the usrmst_id is always 0. At least I know when the dependencies were changed, and I can find them in the log, which does have userid's.
12-01-2015 08:51 AM
Hi Paul,
The usrmst id shouldn't always be 0. But if you could test this by throwing additional fields (userid, user fullname) into this query:
SELECT jobmst.jobmst_prntname, jobmst.jobmst_name, usrmst.usrmst_name, usrmst.usrmst_fullname, msglog.* FROM msglog
JOIN jobmst ON jobmst.jobmst_id = msglog.jobmst_id
JOIN usrmst ON msglog.usrmst_id = usrmst.usrmst_id
WHERE
msglog.msglog_text LIKE '%sent request to override%' -- search using LIKE wildcard string wildcard
and msglog.msglog_crtdt >= getdate() - 7 -- this looks back the past 7 days
order by msglog.msglog_crtdt
BR,
Derrick Au
11-30-2015 07:13 AM
thru the apps sometimes this help. use the Log on the left panel. this will open the Log Filter window. enter your info and click on the OK button. this will give us some of the jobs that were run or updated. you will have to open each one of the item from the list to see what changes/updates occurred in the job.
11-30-2015 07:22 AM
Thanks. This does work. I was wondering if I could get them all in a query for a job or date. Some of the jobs get run a lot.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide