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
HDeleteDatabase (Function)
In french: HSupprimeBaseDeDonnées
HFSQL Client/ServerAvailable only with this kind of connection
Deletes a database located on an HFSQL server. All the connections that use the deleted database are closed.
Example
// Describe the connection
HDescribeConnection("MyConnection", "Julia", "Password", ...
"MyHFServer", "MyDatabase", hAccessHFClientServer, hORead)
// Open the connection
HOpenConnection("MyConnection")
// Delete the database
HDeleteDatabase("MyConnection")
Syntax
<Result> = HDeleteDatabase(<Connection> [, <Database>] [, <Options>])
<Result>: Boolean
  • True if the database was deleted,
  • False if an error occurred. HError is used to identify the error.
<Connection>: Character string or Connection variable
Connection for which the database must be deleted. This connection corresponds to:
<Database>: Optional character string
Name of the database to delete.
If this parameter is not specified, the database defined in the connection will be used. A WLanguage error occurs if no database is defined in the connection.
<Options>: Optional Integer constant (or combination of constants)
By default, when deleting the database, the files corresponding to the logs are not deleted and the files corresponding to the transactions are deleted. This parameter is used to modify this behavior:
hDeleteLogDeletes the log files and all logged operations.
hKeepTRSStores the transaction files.
Component: wd290hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/07/2023

Send a report | Local help