简体   繁体   English

每月第 2 和第 4 个星期四运行的重复 SQL 作业

[英]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.

相关问题 在一行中查找第 2、3、4、5 个非 NULL 值(SQL) - finding 2nd, 3rd, 4th, 5th not NULL values in a row (SQL) 根据特定材料,从同一列中选择第二,第四行等 - Select every 2nd, 4th row and so on from same column based on specific material 如何在 SQL Server 中获取第 2 个和第 4 个星期六的日期列表? - How to get list of 2nd and 4th Saturday dates in SQL Server? SQL Server挑战性问题-寻找第一买家,第二/第三买家,第四或更多买家 - SQL Server Challenging questions - look for 1st buyer, 2nd/3rd buyers, 4th or more buyers 比较 SQL 中每 4 周的值 - Comparing every 4th weeks values in SQL 如何在Oracle表的varchar列中的第2个和第4个char之后插入“/” - How to Insert '/' after 2nd and 4th char in varchar column of an Oracle table 使用ROW_NUMBER()将第1个ARRAY与第2个,第3个,第4个等进行比较 - Using ROW_NUMBER () to Compare 1st ARRAY to 2nd, 3rd, 4th, etc 如何格式化文件名中第二个和第四个下划线之间的值? - How can I format value between 2nd and 4th underscore in the file name? 在每个shamsi月的第一天(波斯日期)运行Sql Job - Run Sql Job in The first day of every shamsi month (persian date) oracle SQL:获取字符串的每个第二个值 - oracle SQL: get every 2nd value of a string
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM