PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Use conditions
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
HDuplicateDatabase (Function)
In French: HDupliqueBaseDeDonnées
HFSQL Client/ServerAvailable only with this kind of connection
Duplicates the database associated with a connection on a HFSQL server. The tables, the rights, the procedures and the triggers are duplicated.
Example
HDuplicateDatabase(MyConnection, "MyCopiedDatabase")
Syntax
<Result> = HDuplicateDatabase(<Connection Name> , <Name of Duplicated Database> [, <Progress Bar>])
<Result>: Boolean
  • True if the database was duplicated.
  • False if an error occurred. HError is used to identify the error.
<Connection Name>: Character string (with or without quotes)
Name of the connection associated with the database to duplicate. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Name of Duplicated Database>: Character string (with or without quotes)
Name of the new database to create (copy of the current database).
Notes:
  • The new database to create must not exist.
  • A WLanguage error occurs if the new database already exists.
<Progress Bar>: Optional character string (with or without quotes)
  • Name of the window where the progress bar will be displayed.
  • Name of the Progress Bar control used to display the progress.
WEBDEV - Server code This option is not available.
Remarks

Use conditions

To duplicate a database, the user must have:
  • the rights to perform backups.
  • the rights to create databases.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment