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
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.