INF: How To Schedule Recurring Tasks To Run At Night

ID: Q140682


The information in this article applies to:


SUMMARY

To schedule a recurring task for a time range that crosses midnight, you need to create two scheduled tasks, one for the time range up to midnight and one for the time range from midnight on.


MORE INFORMATION

With the SQL Server 6.0 scheduling engine, you can specify a start time and an end time for a scheduled task, but the start and end times are on the same day and the start time must be less than the end time.

Thus, if you wanted to run a recurring task only for the hours of 9:00 P.M. to 3:00 A.M., you would need to create two recurring tasks, one with a start time of 9:00pm and an end time of 11:59pm, and the other with a start time of 12:00am and an end time of 3:00am.

Additional query words: sql6 scheduling TASK EVENT


Keywords          : kbusage SSrvAdmin SSrvGen 
Version           : 6.0
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: March 23, 1999