ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Deletes a scheduled task found on an HFSQL server:
  • stored procedure,
  • backup,
  • optimization,
  • refresh of materialized view.
Example
ctMyDatabase is Connection
 
// Delete all scheduled backups
arrBckDesc is array dynamic of hBackupDescription
arrBckDesc = HListScheduling(ctMyDatabase, hlpBackup)
hBckDesc is hBackupDescription
FOR EACH hBckDesc OF arrBckDesc
IF Position(hBckDesc.Source, ctMyDatabase.Database, 0, IgnoreCase) > 0 THEN
HDeleteScheduling(ctMyDatabase, hBckDesc)
END
END
Syntax

Deleting a scheduled task Hide the details

<Result> = HDeleteScheduling(<Connection> , <Scheduled task>)
<Result>: Boolean
  • True if the scheduled task was deleted,
  • False if an error occurred. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable
Connection for which a scheduled task must be deleted. This connection corresponds to:
<Scheduled task>: hScheduledTask variable
Name of hScheduledTask variable describing the task that triggers a stored procedure.

Deleting a scheduled optimization task Hide the details

<Result> = HDeleteScheduling(<Connection> , <Scheduled optimization task>)
<Result>: Boolean
  • True if the scheduled optimization task was deleted,
  • False if an error occurred. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable
Connection for which a scheduled optimization task must be deleted. This connection corresponds to:
<Scheduled optimization task>: hScheduledOptimization variable
Name of the hScheduledOptimization variable used.

Deleting a backup scheduling Hide the details

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

Deleting a scheduling for refreshing a materialized view Hide the details

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

Last update: 05/26/2022

Send a report | Local help