ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2025 feature!
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
Lists the executions of a scheduled job on an HFSQL server. This job can be a scheduled task (stored procedure), backup, optimization or a materialized view refresh.
Example
MyDatabaseConnection is Connection
MyArray is array of hSchedulingHistory

MyArray = MyDatabaseConnection.ListSchedulingHistory(MyScheduledTask)
IF ErrorOccurred = True THEN
	Trace(HErrorInfo())
END
Syntax

Listing the execution history of a scheduled backup Hide the details

<Result> = <Connection>.ListSchedulingHistory([<Scheduled backup> [, <Number of elements>]])
<Result>: Array of hSchedulingHistory variables
Array of hSchedulingHistory variables, corresponding to the different executions of the scheduled backup.
<Connection>: Connection variable
Name of the Connection variable that describes the connection to use.
<Scheduled backup>: Optional hBackupDescription variable
Name of the hBackupDescription variable for which history is to be listed. If this parameter is not specified, the result will be the execution history of all scheduled backups defined for the connection.
<Number of elements>: Optional integer
Maximum number of history entries to list.
Note: By default, the history contains up to 100,000 entries. You can change this value using the <Connection variable>.SetServer function, or in the HFCONF.INI file.

Listing the execution history of a scheduled optimization Hide the details

<Result> = <Connection>.ListSchedulingHistory(<Scheduled optimization> [, <Number of elements>])
<Result>: Array of hSchedulingHistory variables
Array of hSchedulingHistory variables, corresponding to the different executions of the scheduled optimization.
<Connection>: Connection variable
Name of the Connection variable that describes the connection to use.
<Scheduled optimization>: hScheduledOptimization variable
Name of the hScheduledOptimization variable for which history is to be listed. If this parameter is not specified, the result will be the execution history of all scheduled backups defined for the connection.
<Number of elements>: Optional integer
Maximum number of history entries to list.
Note: By default, the history contains up to 100,000 entries. You can change this value using the <Connection variable>.SetServer function, or in the HFCONF.INI file.

Listing the execution history of a scheduled task Hide the details

<Result> = <Connection>.ListSchedulingHistory(<Scheduled task> [, <Number of elements>])
<Result>: Array of hSchedulingHistory variables
Array of hSchedulingHistory variables, corresponding to the different executions of the scheduled task.
<Connection>: Connection variable
Name of the Connection variable that describes the connection to use.
<Scheduled task>: hScheduledTask variable
Name of the hScheduledTask variable for which history is to be listed. If this parameter is not specified, the result will be the execution history of all scheduled backups defined for the connection.
<Number of elements>: Optional integer
Maximum number of history entries to list.
Note: By default, the history contains up to 100,000 entries. You can change this value using the <Connection variable>.SetServer function, or in the HFCONF.INI file.

Listing the execution history of a scheduled refresh of a materialized view Hide the details

<Result> = <Connection>.ListSchedulingHistory(<Scheduled materialized view> [, <Number of elements>])
<Result>: Array of hSchedulingHistory variables
Array of hSchedulingHistory variables, corresponding to the different executions of the scheduled refresh of a materialized view.
<Connection>: Connection variable
Name of the Connection variable that describes the connection to use.
<Scheduled materialized view>: hScheduleMaterializedView variable
Name of the hScheduleMaterializedView variable for which history is to be listed. If this parameter is not specified, the result will be the execution history of all scheduled backups defined for the connection.
<Number of elements>: Optional integer
Maximum number of history entries to list.
Note: By default, the history contains up to 100,000 entries. You can change this value using the <Connection variable>.SetServer function, or in the HFCONF.INI file.
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/28/2025

Send a report | Local help