PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Necessary rights
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds an optimization task of HFSQL Client/Server data files.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Recalculate the statistics for the files found in "MyDatabase",
// every Saturday at 23:00
Optim is hScheduledOptimization
Optim..Description = "Recalculating the statistics for the 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

HAddScheduledOptimization(MyConnection, Optim)
Syntax
<Result> = HAddScheduledOptimization(<Connection Name> , <Name of Scheduled Optimization Task>)
<Result>: Boolean
  • True if the scheduled optimization task was added
  • False if an error occurred. HErrorInfo is used to identify the error.
<Connection Name>: Character string (with or without quotes)
Name of connection for which a scheduled optimization task will be added. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Name of Scheduled Optimization Task>: hScheduledOptimization variable
Name of hScheduledOptimization variable used.
Remarks

Necessary rights

To add a scheduled optimization task, you must have:
  • the corresponding rights (hRightsManageTask constant) on the server,
  • Versions 23 and later
    the rights to connect (hRightsConnection or hRightsEncryptedConnection) to each relevant database,
    New in version 23
    the rights to connect (hRightsConnection or hRightsEncryptedConnection) to each relevant database,
    the rights to connect (hRightsConnection or hRightsEncryptedConnection) to each relevant database,
  • the rights to run the command linked to the scheduled optimization task.
The task will be run with the account of user who created the task.
Versions 23 and later
For a full server optimization, the user must be a super-user.
New in version 23
For a full server optimization, the user must be a super-user.
For a full server optimization, the user must be a super-user.
Note: The schedule optimization task will not be performed if the server is switched off. The scheduled optimization task will be performed at the next available date when the server is switched on.
To find out whether these rights are granted to a user or to a group, use HInfoServerRights or HInfoDatabaseRights.
To modify the rights granted to a user or to a group of users, use HModifyServerRights or HModifyDatabaseRights.
Components
WINDEVWEBDEV - Server code wd230hf.dll
Windows Mobile wp230hf.dll
Linux wd230hf.so
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment