Schedule SQL Job in a user configured time intervals everyday

后端 未结 5 2012
醉梦人生
醉梦人生 2021-01-12 20:55

In my application (ASP.NET, C#), i need to run a stored procedure in a set of pre defined time interval(s) everyday. So that i created a sql job and scheduled the same. But

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 21:15

    It is good that scheduler time is being manage by application.

    But in real world, why user will keep updating scheduler time? I mean to say the frequency.

    So I think whenever time is modified from application then fire this new stored procedure which will update the scheduler time using sp_update_schedule.

    There is no reason for the stored procedure to execute every minute. It will only fire when scheduler is modified via application.

提交回复
热议问题