Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

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
40.2k361550822
accept rate: 34%


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
40.2k361550822
accept rate: 34%

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:

×438
×41
×6

question asked: 09 Jun '11, 09:35

question was seen: 1,908 times

last updated: 09 Jun '11, 10:04