PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
HNoDatabaseAccess (Function)
In french: HInterditAccèsBaseDeDonnées
HFSQL Client/ServerAvailable only with this kind of connection
Forbids all new connections to a database or to all databases.
Notes:
  • The read and write operations operate as usual. Only the new connections to the database are forbidden.
  • To re-enable the connections, use HEndNoDatabaseAccess.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Example
// Describe the connection
HDescribeConnection("MyConnection", "Julia", "Password", "MyHFServer", "CustomerDatabase", ...
hAccessHFClientServer, hORead)
// Open the connection
HOpenConnection("MyConnection")
IF HNoDatabaseAccess("MyConnection", "CustomerDatabase") THEN
Info("Unable to connect to the database")
END
Syntax
<Result> = HNoDatabaseAccess(<Connection name> [, <Database name>])
<Result>: Boolean
  • True if the access (which means the connection) to the specified database (or to all the databases accessed by the connection) is forbidden,
  • 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 forbidden. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
If only this parameter is specified, the access will be forbidden for all the databases of this connection.
<Database name>: Optional character string (with quotes)
Name of the database for which the access must be forbidden.
If this parameter is set to "*", the access will be forbidden for all the databases.
If this parameter is not specified, the access will be forbidden for the databases used by <Connection name>.
Component : wd240hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment