[英]Reoccurring SQL job to run on the 2nd and 4th Thursday of every month
I need a job to run on the 2nd and 4th Thursday of every month.我需要一份工作在每个月的第二个和第四个星期四跑步。 I know I can set up a job to run every two weeks but that logic doesn't work when a month eventually hits a five week span.我知道我可以设置一个工作每两周运行一次,但是当一个月最终达到五周时,这种逻辑就不起作用了。 Is it possible to set this up using the SQL Server Agent Schedule?是否可以使用 SQL 服务器代理计划进行设置? If not, does anyone recommend another method?如果没有,有人推荐另一种方法吗?
Create two schedules on the job, one that runs on the second Thursday, and one that runs on the fourth.为作业创建两个计划,一个在第二个星期四运行,一个在第四个星期四运行。
Under the Frequency
heading on the Scheduler, change the Occurs
drop down to Monthly
to get to the options you need.在 Scheduler 的Frequency
标题下,将Occurs
下拉菜单更改为Monthly
以获取您需要的选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.