AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL Client/Server
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
HListConnectedUser (Function)
HFSQL Client/ServerDisponible solo con este tipo de conexión
Lists users currently connected to one or more data files handled by a Client/Server connection.
Ejemplo
// Describe the connection
HDescribeConnection("MyConnection", "Julia", "Password", "MyHFServer", "MyDatabase", ...
hAccessHFClientServer, hORead)
// Open the connection
HOpenConnection("MyConnection")
Result1 is string
Result1 = HListConnectedUser("MyConnection")
// Add the users into a List Box control
ListAdd(LIST_MyList, Result1)
Sintaxis
<Result> = HListConnectedUser(<Connection name> [, <Database> [, <Physical name of the data file>]])
<Result>: Character string
Name of the different users who are using:
  • or the specified data file.
  • the specified database.
If only the connection name is specified, lists all the users connected to the server.

The information is returned in the following format:
<Username> + TAB + <Name of client computer> + TAB +
<Name of client application> + TAB + <Internal version of client HFSQL library> +
TAB + <Version of client HFSQL library> + TAB +
<Priority of client application> + TAB +
<Name of server node (if HFSQL cluster)> + <IP address of client computer> + CR + ...

Note If the current user does not have user view rights (constant hRightViewUser) on the server (function HModifyServerRights or HInfoServerRights), the function HListConnectedUser function returns only the current user's connections.
<Connection name>: Character string
Name of the connection used. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Database>: Optional character string
Name of database for which we want to find out the connected users.
If this parameter as well as the parameter <Physical name of the data file> are not specified, the function HListConnectedUser will list the users connected to the server.
<Physical name of the data file>: Optional character string
Name of the data file for which we want to know which users are currently logged in.
If this parameter is not specified, HListConnectedUser lists the users connected to the database.
If this parameter and <Database> are not specified, HListConnectedUser lists the users connected to the server.
Componente: wd300hf.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 12/06/2025

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