INF: How To Schedule Recurring Tasks To Run At Night

Last reviewed: May 2, 1997
Article ID: Q140682

The information in this article applies to:
  • Microsoft SQL Server, version 6.0

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.