|
|
|
|
|
<Connection variable>.AddScheduling (Function) In french: <Variable Connexion>.AjoutePlanification
Available only with this kind of connection
Adds a new scheduled item to an HFSQL server: scheduled task (stored procedure), backup, optimization or refresh of a materialized view.
MaConnexion is Connection
...
Optim is hScheduledOptimization
Optim.Description = "Recalcul des statistiques des fichiers de données" + ...
" de la base de données MaBase"
Optim.Scheduling.Month = "*"
Optim.Scheduling.DayOfWeek = "samedi"
Optim.Scheduling.Hour = "23"
Optim.Scheduling.Minute = "0"
Optim.File[1].Name = "MaBase"
Optim.File[1].Option = hOptStat
MaConnexion.AddScheduling(Optim)
Syntax
Adding a scheduled task Hide the details
<Result> = <Connection>.AddScheduling(<Scheduled task>)
<Result>: Boolean - True if the scheduled task has been added,
- False if an error occurs. HErrorInfo is used to identify the error.
<Connection>: Connection variable Name of the Connection variable that describes the connection for which a scheduled task must be added. <Scheduled task>: hScheduledTask variable Name of the hScheduledTask variable describing the task that triggers a stored procedure.
Adding a scheduled optimization task Hide the details
<Result> = <Connection>.AddScheduling(<Scheduled optimization task>)
<Result>: Boolean - True if the planned optimization task has been added,
- False if an error occurs. HErrorInfo is used to identify the error.
<Connection>: Connection variable Name of the Connection variable that describes the connection for which a scheduled optimization task must be added. <Scheduled optimization task>: hScheduledOptimization variable Name of the hScheduledOptimization variable used.
Adding a backup scheduling Hide the details
<Result> = <Connection>.AddScheduling(<Scheduled backup>)
<Result>: Boolean - True if the scheduled backup was added,
- False otherwise.
<Connection>: Connection variable Name of the Connection variable that describes the connection for which a scheduled backup must be added. <Scheduled backup>: hBackupDescription variable Name of the hBackupDescription variable used.
Adding a scheduling used to refresh a materialized view Hide the details
<Result> = <Connection>.AddScheduling(<Materialized view>)
<Result>: Boolean - True if planning has been added,
- False otherwise.
<Connection>: Connection variable Name of the Connection variable that describes the connection for which a materialized view refresh scheduling must be added. <Materialized view>: hScheduleMaterializedView variable Name of the hScheduleMaterializedView variable that contains the description of the materialized view to refresh.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|