AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL Client/Server
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Adds a new scheduled item to an HFSQL server: scheduled task (stored procedure), backup, optimization or refresh of a materialized view.
Ejemplo
// Recalculate statistics of data files in "MyDatabase", 
// every Saturday at 23:00
Optim is hScheduledOptimization
Optim.Description = "Recalculating statistics of data files" + ...
	" in MyDatabase"

Optim.Scheduling.Month = "*"
Optim.Scheduling.DayOfWeek = "Saturday"
Optim.Scheduling.Hour = "23"
Optim.Scheduling.Minute = "0"

Optim.File[1].Name = "MyDatabase"
Optim.File[1].Option = hOptStat

HAddScheduling(MyConnection, Optim)
Sintaxis

Adding a scheduled task Ocultar los detalles

<Result> = HAddScheduling(<Connection> , <Scheduled task>)
<Result>: Boolean
  • True if the scheduled task was 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 Ocultar los detalles

<Result> = HAddScheduling(<Connection> , <Scheduled optimization task>)
<Result>: Boolean
  • True if the scheduled optimization task was 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 Ocultar los detalles

<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 Ocultar los detalles

<Result> = HAddScheduling(<Connection> , <Materialized view>)
<Result>: Boolean
  • True if the scheduling was 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.
Componente: wd300hf.dll
Versión mínima requerida
  • Versión 20
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 18/10/2024

Señalar un error o enviar una sugerencia | Ayuda local