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

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

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



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:


question asked: 23 May '12, 11:25

question was seen: 2,869 times

last updated: 23 May '12, 17:16