How to view the job in text in sql server 2005
2 answers
For things like this, where I know how to do something in Management Studio, but not sure how to do it with code, I sometimes run a profiler trace and then execute an action in Management Studio to see what it does ... Doing this on my system means the following might help.
exec msdb.dbo.sp_help_jobstep @job_name = 'Your job name'
If you look at the definition of what it uses msdb.dbo.sysjobsteps
+2
a source to share