• If you use the propre sp, things whill work fine.

    This is because these procs also tell the running sqlagent to refresh its job-data.

    I use it all the time when e.g. I schedule db-maintenance, the first thing I do is disable the incremental backup job plus leaving a notification.

    I do it this way :

    EXEC MSDB.DBO.sp_update_job @job_name = N'myserverLog_Incremental', @new_name = N'DBMaintenanceProcedure_Disabled - myserverLog_Incremental', @enabled = 0

    the last step contains the reactivation of this inclemental backup jop

    EXEC MSDB.DBO.sp_update_job @job_name = N'DBMaintenanceProcedure_Disabled - myserverLog_Incremental', @new_name = N'myserverLog_Incremental', @enabled = 1

    Works as desinged

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me