|
|
|
|
|
<Connection variable>.ExecuteScheduling (Function) In french: <Variable Connexion>.ExécutePlanification
Available only with this kind of connection
Immediately executes a scheduled item regardless of its scheduling: scheduled task (stored procedure), backup, optimization, refresh of a materialized view.
MyDatabaseConnection is Connection
arrBckDesc is array dynamic of hBackupDescription
arrBckDesc = MyDatabaseConnection.ListScheduling(hlpBackup)
hBckDesc is hBackupDescription
FOR EACH hBckDesc OF arrBckDesc
MyDatabaseConnection.ExecuteScheduling(hBckDesc)
END
Syntax
Running a scheduled task immediately Hide the details
<Result> = <Connection>.ExecuteScheduling(<Scheduled task>)
<Result>: Boolean - True if the scheduled task was run,
- False if an error occurs. HErrorInfo is used to identify the error.
<Connection>: Connection variable Name of the Connection variable that describes the connection to use. <Scheduled task>: hScheduledTask variable Name of the hScheduledTask variable describing the task that triggers a stored procedure.
Running a scheduled optimization task Hide the details
<Result> = <Connection>.ExecuteScheduling(<Scheduled optimization task>)
<Result>: Boolean - True if the scheduled optimization task was run,
- False if an error occurs. HErrorInfo is used to identify the error.
<Connection>: Connection variable Name of the Connection variable that describes the connection to use. <Scheduled optimization task>: hScheduledOptimization variable Name of the hScheduledOptimization variable used.
Running a backup scheduling Hide the details
<Result> = <Connection>.ExecuteScheduling(<Scheduled backup> [, <Type of backup>])
<Result>: Boolean - True if the scheduled backup was run,
- False otherwise.
<Connection>: Connection variable Name of the Connection variable that describes the connection to use. <Scheduled backup>: hBackupDescription variable Name of the hBackupDescription variable used. <Type of backup>: Optional boolean Type of backup to perform: - True (default value): Differential Backups.
- Faux: Complete backup.
Remark: A differential backup can only be performed if the backup task includes a differential schedule..
Running a scheduling used to refresh a materialized view Hide the details
<Result> = <Connection>.ExecuteScheduling(<Materialized view>)
<Result>: Boolean - True if the scheduling was run,
- False otherwise.
<Connection>: Connection variable Name of the Connection variable that describes the connection to use. <Materialized view>: hScheduleMaterializedView variable Name of the hScheduleMaterializedView variable containing the description of the materialized views to refresh.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|