SQL 服务器作业优先级
SQL server jobs precedence
我的情况是,我有一份每天 运行 的工作(工作 A),每 2 天 运行 的工作(工作 B)和另一份工作 运行s 每个周末(工作 C)。我需要确保作业 A 运行 在作业 B 之前。如果作业 A 没有 运行 适当,那么我不希望作业 B 运行。同样的事情也适用于工作 C。有人对如何处理这个有任何想法吗?
感谢任何帮助
我使用了一个名为 SQL Sentry 的产品来完成您想要做的事情。 SQL Sentry 具有许多其他高级监视和控制功能(如终止挂起的作业、排队低优先级作业等)。这是他们的网站 https://sentryone.com/platform/sql-server-performance-monitoring.
这是他们advertising之一的引述:
19. Chaining and Queuing
Did you ever wish you could find just a few more hours in your
maintenance window, or need to have jobs run in a particular sequence?
The advanced chaining features in SQL Sentry Event Manager can assure
that interdependent jobs run in the proper order without wasting time
or resources.
Chaining
SQL Sentry Event Manager allows you to chain
SQL Agent Jobs, Windows Tasks, or Oracle Jobs across servers. You can
enforce dependencies and automate workflow throughout your entire
enterprise, even across platforms! The graphical chaining interface
allows you to design the workflow using variables such as completion,
success, or failure. More details are available in the User Guide, but
take a few minutes to watch our two video tutorials on chaining -
Graphical Chaining Interface and Advanced Chaining.
I need to make sure that Job A runs before Job B. If Job A does not run appropriately then i don't want Job B to run. The same thing applies to Job C.
创建所有作业 A、B、C 并仅安排作业 A..在作业 A 结束时,成功事件,调用作业 B,如下所示
EXEC dbo.sp_start_job N'Weekly Sales Data Backup' ;
GO
现在同样的事情适用于作业 c,在作业 B 成功事件时调用作业 c..
我会采用这种方法。您也可以采用将成功、失败值插入 table 并确保作业 b 或 c 在开始之前读取这些值的方法
我的情况是,我有一份每天 运行 的工作(工作 A),每 2 天 运行 的工作(工作 B)和另一份工作 运行s 每个周末(工作 C)。我需要确保作业 A 运行 在作业 B 之前。如果作业 A 没有 运行 适当,那么我不希望作业 B 运行。同样的事情也适用于工作 C。有人对如何处理这个有任何想法吗?
感谢任何帮助
我使用了一个名为 SQL Sentry 的产品来完成您想要做的事情。 SQL Sentry 具有许多其他高级监视和控制功能(如终止挂起的作业、排队低优先级作业等)。这是他们的网站 https://sentryone.com/platform/sql-server-performance-monitoring.
这是他们advertising之一的引述:
19. Chaining and Queuing
Did you ever wish you could find just a few more hours in your maintenance window, or need to have jobs run in a particular sequence? The advanced chaining features in SQL Sentry Event Manager can assure that interdependent jobs run in the proper order without wasting time or resources.
Chaining
SQL Sentry Event Manager allows you to chain SQL Agent Jobs, Windows Tasks, or Oracle Jobs across servers. You can enforce dependencies and automate workflow throughout your entire enterprise, even across platforms! The graphical chaining interface allows you to design the workflow using variables such as completion, success, or failure. More details are available in the User Guide, but take a few minutes to watch our two video tutorials on chaining - Graphical Chaining Interface and Advanced Chaining.
I need to make sure that Job A runs before Job B. If Job A does not run appropriately then i don't want Job B to run. The same thing applies to Job C.
创建所有作业 A、B、C 并仅安排作业 A..在作业 A 结束时,成功事件,调用作业 B,如下所示
EXEC dbo.sp_start_job N'Weekly Sales Data Backup' ;
GO
现在同样的事情适用于作业 c,在作业 B 成功事件时调用作业 c..
我会采用这种方法。您也可以采用将成功、失败值插入 table 并确保作业 b 或 c 在开始之前读取这些值的方法