PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Connection with an HFSQL analysis
  • Various
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
Closes the current connection and frees the memory used by the connection. SQLDisconnect must be systematically called to close the connection, even if this connection failed.
PHP There is no need to use SQLDisconnect in the following cases
  • if no session is used.
  • if the connection failed.
Versions 16 and later
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code The SQL functions are used to handle the local databases (such as Web SQL databases). For more details, see Accessing a database in local mode (SQLite).
New in version 16
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code The SQL functions are used to handle the local databases (such as Web SQL databases). For more details, see Accessing a database in local mode (SQLite).
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code The SQL functions are used to handle the local databases (such as Web SQL databases). For more details, see Accessing a database in local mode (SQLite).
Versions 19 and later
Android Widget This function is now available in Android Widget mode (accessing the external databases via a Webservice).
Android This function is now available for Android applications (accessing the external databases via a Webservice).
iPhone/iPad This function is now available for iPhone/iPad applications (accessing the external databases via a Webservice).
New in version 19
Android Widget This function is now available in Android Widget mode (accessing the external databases via a Webservice).
Android This function is now available for Android applications (accessing the external databases via a Webservice).
iPhone/iPad This function is now available for iPhone/iPad applications (accessing the external databases via a Webservice).
Android Widget This function is now available in Android Widget mode (accessing the external databases via a Webservice).
Android This function is now available for Android applications (accessing the external databases via a Webservice).
iPhone/iPad This function is now available for iPhone/iPad applications (accessing the external databases via a Webservice).
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)AjaxHFSQLHFSQL Client/ServerHyper File 5.5
// Exemple attaché à l'analyse GESCOM
// TABLE_TableReq est une table mémoire
ResConnect is int
ResExec is boolean
MaBase is string = "C:\GESCOM.WDD"
ResConnect = SQLConnect(MaBase, "", "")
IF ResConnect <> 0 THEN
ResExec = SQLExec("SELECT NOM, VILLE FROM POP", "REQ1")
IF ResExec = True THEN
// Récupérer les données dans la table
SQLTable("REQ1", TABLE_TableReq)
ELSE
// Erreur d'exécution de la requête
// Récupérer les informations relatives à la requête exécutée
SQLInfo("REQ1")
Error(SQL.MesError)
END
// Libérer la requête dans tous les cas
SQLClose("REQ1")
ELSE
 // Erreur de connexion
 Error("La connexion à la base" + MaBase + "a échoué")
END
// Libérer la requête dans tous les cas
SQLDisconnect()
Syntax
SQLDisconnect()
Remarks
WINDEVWEBDEV - Server codeReports and QueriesUser code (UMC)AjaxHFSQLHFSQL Client/ServerHyper File 5.5

Connection with an HFSQL analysis

In the case of a connection with an HFSQL evaluation, function SQLDisconnect closes the evaluation (equivalent to function HCloseAnalysis). To continue to use the analysis files, the analysis must be opened by HOpenAnalysis.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.

Various

  • A single connection can be established at a given time.
  • The memory allocated during the connection (execution of "SQLFreeConnect") is automatically freed.
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment