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.

I would like to execute the maintenance plan through a script everyday instead of kicking off the backups manually. Is there an option to kick it off that way?

asked 23 May '12, 11:25

Barup's gravatar image

Barup
51337
accept rate: 0%


I do not fully understand your question: When you create a maintenance plan in Sybase Central, you can surely specify a regular schedule for repeated executions of the plan. That seems the easy way if you prefer a GUI-based approach.

For existing plans, you can modify them with the help of the "Modify Maintenance Plan Wizard".

Additionally, as maintenance plans create according events internally, you can alter these events (and add or change their schedule), or trigger their execution on demand with the help of the TRIGGER EVENT statement.

AFAIK, the event is named like the maintenance plan with an "_event" suffix, so for the plan "MT_MyFullBackup", you might have an event "MT_MyFullBackup_event".

To trigger that once, you could call

trigger event MT_MyFullBackup_event;

Note that this does require DBA permission.

permanent link

answered 23 May '12, 11:39

Volker%20Barth's gravatar image

Volker Barth
29.3k287438644
accept rate: 32%

edited 23 May '12, 11:41

This is exactly what I was looking for. Thanks for this info. I have to kick off the events from a different scheduler because of the other dependencies that I can add with the application related stuff.

(23 May '12, 13:27) Barup
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:

×5

question asked: 23 May '12, 11:25

question was seen: 1,046 times

last updated: 23 May '12, 17:16