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
Immediately executes a scheduled item regardless of its scheduling: scheduled task (stored procedure), backup, optimization, refresh of a materialized view.
Example
tabDescSvg is array dynamic of hBackupDescription 
tabDescSvg = HListScheduling(MaConnexionBase, hlpBackup)
hDescSvg is hBackupDescription
FOR EACH hDescSvg OF tabDescSvg
	HExecuteScheduling(MaConnexionBase, hDescSvg)
END
Syntax

Running a scheduled task immediately Hide the details

<Result> = HExecuteScheduling(<Connection> , <Scheduled task>)
<Result>: Boolean
  • True if the scheduled task was run,
  • False if an error occurs. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable
Connection to use. This connection corresponds to:
<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> = HExecuteScheduling(<Connection> , <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>: Character string or Connection variable
Connection to use. This connection corresponds to:
<Scheduled optimization task>: hScheduledOptimization variable
Name of the hScheduledOptimization variable used.

Running a backup scheduling Hide the details

<Result> = HExecuteScheduling(<Connection> , <Scheduled backup> [, <Type of backup>])
<Result>: Boolean
  • True if the scheduled backup was run,
  • False otherwise.
<Connection>: Character string or Connection variable
Connection to use. This connection corresponds to:
<Scheduled backup>: hBackupDescription variable
Name of the hBackupDescription variable used.
<Type of backup>: Optional boolean
Type of backup:
  • True (default value): Differential backup.
  • False: Full backup.
Note: A differential backup can only be performed if the backup job includes a differential schedule.

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

<Result> = HExecuteScheduling(<Connection> , <Materialized view>)
<Result>: Boolean
  • True if the scheduling was run,
  • False otherwise.
<Connection>: Character string or Connection variable
Connection to use. This connection corresponds to:
<Materialized view>: hScheduleMaterializedView variable
Name of the hScheduleMaterializedView variable containing the description of the materialized views 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: 03/27/2025

Send a report | Local help