on 2012 May 23 12:25 PM
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?
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.