AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL Client/Server
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
HNoDatabaseAccess (Function)
In french: HInterditAccèsBaseDeDonnées
HFSQL Client/ServerAvailable only with this kind of connection
Denies all new connections to a database or to all databases.
Remarks:
  • The read and write operations operate as usual. Only the new connections to the database are denied.
  • To re-enable the connections, use HEndNoDatabaseAccess.
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> [, <Database>])
<Result>: Boolean
  • True if the access (which means the connection) to the specified database (or to all the databases accessed by the connection) is denied,
  • False if an error occurred. HError is used to identify the error.
<Connection>: Character string or Connection variable
Connection containing the database to which access must be denied. This connection corresponds to:
<Database>: Optional character string
Name of the database for which the access must be denied.
If this parameter is set to "*", the access will be denied for all the databases.
If this parameter is not specified, the access will be denied for the databases used by <Connection>.
Component: wd290hf.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 06/07/2023

Señalar un error o enviar una sugerencia | Ayuda local