PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

New WINDEV, WEBDEV, WINDEV Mobile 25 feature!
  • 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
<Connection variable>.DuplicateDatabase (Function)
In french: <Variable Connexion>.DupliqueBaseDeDonné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
// Describe the connection
MyConnection is Connection
 
MyConnection.DuplicateDatabase("MyCopiedDatabase")
Syntax
<Result> = <Connection>.DuplicateDatabase(<Duplicated database>)
<Result>: Boolean
  • True if the database was duplicated.
  • False if an error occurred. HError is used to identify the error.
<Connection>: Connection variable
Name of the Connection variable that describes the connection associated with the database to duplicate.
<Duplicated database>: Character string (with or without quotes)
Name of the new database to create (copy of the current database).
Remarks:
  • The new database to create must not exist.
  • A WLanguage error occurs if the new database already exists.
Remarks

Use conditions

To duplicate a database, the user must have:
  • the rights to perform backups.
  • the rights to create databases.
Component : wd250hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment