AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL Client/Server
  • Retrieving the rights granted to the users and copying these rights
HInfoServerRights (Example)
Retrieving the rights granted to the users and copying these rights
WINDEVWEBDEV - Código ServidorReportes y ConsultasWindowsCódigo de Usuario (UMC)Ajax The following example is used to:
  • find out the default rights granted to a user
  • find out the rights actually granted to a user
  • copy the default rights granted to a user to another user
sRights is string
// Retrieves the rights to create the database granted to
// the usernamed Smith on the server of the CNT connection
sRights = HInfoServerRights("CNT", "Smith", hRightsCreateDB)
SWITCH sRights
CASE hAllowed
...
CASE hForbidden
...
CASE hInherit
...
END
END
 
// Retrieve the final rights to create the database
// of the usernamed Smith on the server of CNT connection
sRights = HInfoServerRights("CNT", "Smith", hRightsCreateDB)
SWITCH sRights
CASE hAllowed
  ...
  CASE hForbidden
  ...
  END
END
 
// Copy the rights from a user to another one
sRights1 is string
sRights1 = HInfoServerRights("CNT", "Smith", hRightsCreateDB)
HModifyServerRights("CNT", "Clark", hRightsCreateDB, sRights1)
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: 27/05/2022

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