gpt4 book ai didi

sql-server - SQL Server 作业动态调度

转载 作者:行者123 更新时间:2023-12-03 03:24:17 25 4
gpt4 key购买 nike

我有一组 SQL Server 作业,我希望它们的时间表是动态的,即我希望下一个运行日期来自表。

我已尝试更新 sysjobschedules 表中的 next_run_datesysjobactivity 表中的 next_scheduled_run_date,但这并不适用做任何事。

我该如何解决这个问题?

最佳答案

我认为您可以使用 - sp_update_schedule 来更新时间表。

sp_update_schedule     {   [ @schedule_id = ] schedule_id       | [ @name = ] 'schedule_name' }    [ , [ @new_name = ] new_name ]    [ , [ @enabled = ] enabled ]    [ , [ @freq_type = ] freq_type ]    [ , [ @freq_interval = ] freq_interval ]     [ , [ @freq_subday_type = ] freq_subday_type ]     [ , [ @freq_subday_interval = ] freq_subday_interval ]     [ , [ @freq_relative_interval = ] freq_relative_interval ]     [ , [ @freq_recurrence_factor = ] freq_recurrence_factor ]     [ , [ @active_start_date = ] active_start_date ]     [ , [ @active_end_date = ] active_end_date ]     [ , [ @active_start_time = ] active_start_time ]     [ , [ @active_end_time = ] active_end_time ]     [ , [ @owner_login_name = ] 'owner_login_name' ]    [ , [ @automatic_post =] automatic_post ]

关于sql-server - SQL Server 作业动态调度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18314573/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com