简体   繁体   中英

Schedule a job to run only if another job is not currently running in Microsoft SQL Server Management Studio

Currently have 2 jobs that can't run in parallel. Is there a way I can defer the execution based on the status? So MAG_LOGICAR_D3_H should not run if MAG_LOGICAR_D3_M is currently running and vice versa using Microsoft SQL Server Management Studio ?

在此处输入图片说明

On way to accomplish this is using a maintenance plan.

  1. Add two: Execute SQL Server Agent Job Task .
  2. Configure the jobs.
  3. Link both jobs.
  4. Force the execution of second job after Success or Completion of the first one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM