Home | Sign in | English UK

  • Connecting to a locked database
  • Authorizing the access to a database locked by the HFSQL Control Center
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
HEndNoDatabaseAccess (Function)
In french: HFinInterditAccèsBaseDeDonnées
HFSQL Client/ServerAvailable only with this kind of connection
Re-allows the access (which means the connection) to one or more databases accessible via a connection.
Note: The access to the databases was forbidden by HNoDatabaseAccess.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
IF HNoDatabaseAccess("MyConnection", "CustomerDatabase") = True THEN
        // Specific process
        HEndNoDatabaseAccess("MyConnection", "CustomerDatabase")
<Result> = HEndNoDatabaseAccess(<Connection name> [, <Database name>])
<Result>: Boolean
  • True if the access to the specified database (or to all the databases accessed by the connection) is restored,
  • False if an error occurred. HError is used to identify the error.
<Connection name>: Character string (with or without quotes)
Name of connection containing the database whose access must be restored. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
If only this parameter is specified, all the databases using this connection will have their access restored.
<Database name>: Optional character string (with quotes)
Name of database for which the access must restored.
If this parameter corresponds to "*", the access will be restored for all the databases.
If this parameter is not specified, the access will be restored for all the databases accessible by <Connection Name>.

Connecting to a locked database

In some cases (power failure for example), the connections to a database may be refused. For example, if a power failure occurs during the execution of this code (before HNoDatabaseAccess):
// Describe the connection
HDescribeConnection("MyConnection", "Julia", "Password", "MyHFServer", ...
"CustomerDatabase", hAccessHFClientServer, hORead)
// Open the connection
IF HNoDatabaseAccess("MyConnection", "CustomerDatabase") = True THEN
Info("Unable to connect to the database")
To authorize the accesses again, all you have to do is establish a connection without specifying a database and use HEndNoDatabaseAccess.

Authorizing the access to a database locked by the HFSQL Control Center

When the connections to a HFSQL Client/Server database are refused, the access can be authorized again via the HFSQL Control Center. To do so, perform the following operations:
  • Connect as administrator to the server without specifying the database,
  • Display the "Connections" tab of server,
  • In the ribbon, in the "Connections" group, expand the "Lock of connections" button and select "Authorize all the connections".
Component : wd240hf.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment