The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

Yesterday, I have altered the schedule for an event to run every 12 instead of every 24 hours. The original start time was 23:40, and I left that unchanged. So only the EVERY clause was changed.

Now I notice that the event has not run today at 11:40 (as I had expected), and the next scheduled time (as given by select db_extended_property('NextScheduleTime', 'MyEvent')) is tonight.

Does it mean that when using a period < 24 hours, I have to specify the first start time for the according day, since there's no automatic "day-overflow" calculation?

I.e. would I have to change my schedule to

start time '11:40'
every 12 hours

to have it run twice a day?

asked 09 Jun '11, 09:35

Volker%20Barth's gravatar image

Volker Barth
29.3k287438644
accept rate: 32%


Well, I should have read the docs, sigh...

To cite:

START TIME clause
The first scheduled time for each day on which the event is scheduled.
...
EVERY clause
An interval between successive scheduled events. Scheduled events occur only after the START TIME for the day, or in the range specified by BETWEEN ... AND.

So, yes, it seems that there's no automatic day-overflow calculation, and I have to ALTER the start time as well:)

permanent link

answered 09 Jun '11, 10:04

Volker%20Barth's gravatar image

Volker Barth
29.3k287438644
accept rate: 32%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×404
×34
×4

question asked: 09 Jun '11, 09:35

question was seen: 741 times

last updated: 09 Jun '11, 10:04