cancel
Showing results for 
Search instead for 
Did you mean: 

Execute a maintenance plan manually

Former Member
3,100

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?

Accepted Solutions (1)

Accepted Solutions (1)

VolkerBarth
Contributor

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.

Former Member
0 Kudos

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.

Answers (0)