Update SQL job step

  • I need to add my email address on the failure steps on SQL agent....There are hundred of jobs setup and I need to add my emailid on all. Is there easy way to do this instead of going manually adding one by one?

  • Do you want to update a notification or a step command?

    Notification

    sp_update_job [ @job_id =] job_id | [@job_name =] 'job_name'

    [, [@notify_level_email =] email_level ]

    [, [@notify_email_operator_name =] 'email_name' ]

    Step Command

    sp_update_jobstep

    { [@job_id =] job_id

    | [@job_name =] 'job_name' } ,

    [@step_id =] step_id

    [ , [@step_name =] 'step_name' ]

    [ , [@command =] 'command' ]

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply