Created
February 27, 2018 19:06
-
-
Save royashbrook/5cde18572d35700a1e3181341c7055e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
[job] = j.name | |
, s.step_id | |
, [step] = s.step_name | |
, [cmd] = s.command | |
, [db] = s.database_name | |
from | |
sysjobs j | |
join sysjobsteps s on | |
s.job_id = j.job_id | |
where | |
j.name = 'Your Job Name' | |
order by | |
j.name | |
, s.step_id | |
for xml | |
auto | |
, elements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment