January 13, 2025 at 6:07 pm
And after changing my search terms in Google to "SQL Server get job name from sp_who2 program_name" instead of something more generic, I HAVE FOUND IT!
CONVERT(VARCHAR(34),master.dbo.fn_VarbinToHexStr(sj.Job_ID))
Be careful here, the function fn_VarbinToHexStr is an old relic with some rather ugly code, I would not use it in any production code.
😎
January 13, 2025 at 6:08 pm
January 13, 2025 at 6:41 pm
Eirikur, I ended up using Kaj's solution, which didn't require the function.
Viewing 3 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply