ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Adds a new scheduled item to an HFSQL server: scheduled task (stored procedure), backup, optimization or refresh of a materialized view.
Example
// Recalculer les statistiques des fichiers de données de la base de données "MaBase", 
// tous les samedis à 23H00
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

HAddScheduling(MaConnexion, Optim)
Syntax

Adding a scheduled task Hide the details

<Result> = HAddScheduling(<Connection> , <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>: Character string or Connection variable
Connection for which a scheduled task must be added. This connection corresponds to:
<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> = HAddScheduling(<Connection> , <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>: Character string or Connection variable
Connection for which a scheduled optimization task will be added. This connection corresponds to:
<Scheduled optimization task>: hScheduledOptimization variable
Name of the hScheduledOptimization variable used.

Adding a backup scheduling Hide the details

<Result> = HAddScheduling(<Connection> , <Scheduled backup>)
<Result>: Boolean
  • True if the scheduled backup was added,
  • False otherwise.
<Connection>: Character string or Connection variable
Connection for which a scheduled backup will be added. This connection corresponds to:
<Scheduled backup>: hBackupDescription variable
Name of the hBackupDescription variable used.

Adding a scheduling used to refresh a materialized view Hide the details

<Result> = HAddScheduling(<Connection> , <Materialized view>)
<Result>: Boolean
  • True if planning has been added,
  • False otherwise.
<Connection>: Character string or Connection variable
Connection for which a materialized view refresh scheduling must be added. This connection corresponds to:
<Materialized view>: hScheduleMaterializedView variable
Name of the hScheduleMaterializedView variable that contains the description of the materialized view to refresh.
Component: wd300hf.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/12/2025

Send a report | Local help