简体   繁体   English

计划SQL作业

[英]Scheduling a SQL Job

what is the best way to schedule a SQL Job to run from (any date range) ie 15th to 18th every single month with no end date? 安排SQL Job从(任何日期范围)(即每个月15号到18号)运行且没有结束日期的最佳方法是什么?

Thanks in advance. 提前致谢。

john 约翰

SQL Server 2008 you can set the frequency to occur Monthly and have 3 or 4 individual schedules to occur on the 15th, 16th, 17th, and 18th day of each month. SQL Server 2008可以将频率设置为每月发生一次,并在每个月的15日,16日,17日和18日有3或4个单独的时间表。 Similar to the below image. 类似于下图。

在此处输入图片说明

Not the cleanest solution but it does work. 不是最干净的解决方案,但它确实有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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