AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / HFSQL / Funciones HFSQL Client/Server
  • When are rights changed?
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Modifies the rights granted to a user or to a group for a HFSQL Client/Server database.
Remark: to find out the rights granted to a group or to a user on an HFSQL Client/Server database, use <Variable Connection>.InfoDatabaseRights.
Ejemplo
// Description de la connexion
MaConnexion is Connection

// Copie des droits d'un utilisateur à un autre
sDroits is string
sDroits = MaConnexion.InfoDroitBaseDeDonnées("Dupont", hRightsRead + hRightsInsert, "MaBase")
MaConnexion.ModifieDroitBaseDeDonnées("Durand", hRightsRead + hRightsInsert, sDroits, "MaBase")
Sintaxis
<Result> = <Connection>.ModifyDatabaseRights(<User or group> , <Rights to modify> , <New values> , <Database>)
<Result>: Booleano
  • True if the rights have been modified,
  • False otherwise. HErrorInfo is used to identify the error.
No modification is performed if the new value is already assigned to the specified rights.
Remark: HErrorInfo will return an "Unknown user" or "Unknown group" error if the current user does not have the rights to see the users (hRightsSeeUser constant) and if he wants to get information about another user or another group.
<Connection>: Variable de tipo Connection
Name of the Connection variable that describes the connection for which the rights of a user or group of users must be modified.
<User or group>: Cadena de caracteres
Name of the user or group whose rights must be modified.
<Rights to modify>: Constante o combinación de constantes de tipo Integer
List of rights to modify:
hRightsAutoModifRights to perform the automatic modification of data files on a data file.
hRightsBackupRights to perform a backup.
hRightsChangeLinkRights to modify the integrity rules on a data file.
hRightsChangeOwnerRights to modify the owner of an element.
hRightsChangeRightsRights to change rights.
hRightsConnectionRights to connect to a server (encrypted or unencrypted connection).
hRightsCreateFileRights to create a data file (with <Fuente>.Creation).
hRightsCreateViewRights to create an SQL view or a materialized view.
hRightsDebugRights to debug the stored procedures.
hRightsDeleteRights to delete the records from a data file.
hRightsDeleteDBRights to delete a database.
hRightsDeleteFileRights to delete a data file (<Variable Connection>.DeleteFile).
hRightsDeleteViewRights to delete a view.
hRightsEncryptedConnectionRights to connect to a server (encrypted connection only).
hRightsInsertRights to add new records into a data file.
hRightsLockRights to lock the data files or the records of a data file.
hRightsMaintenanceRights to start a re-index operation or to perform statistical calculations on a data file.
hRightsManageDuplicateRights to enable and disable the management of duplicates.
hRightsManageIntegrityRights to enable and disable the management of integrity.
hRightsManageProcedureRights to add, modify and delete the sets of procedures.
hRightsManageTriggerRights to add, enable and delete server triggers.
hRightsNoDatabaseAccessRights to prevent access to a database (<Variable Connection>.NoDatabaseAccess and <Variable Connection>.EndNoDatabaseAccess).
hRightsReadRights to read the records of a data file.
hRightsRunProcedureRights to run a stored procedure.
Novedad versión 2024
hRightsUnmask
Right to de-anonymize anonymized fields in database files.
hRightsUpdateRights to modify the records of a data file.
<New values>: Constantes de tipo Integer
Lists the new values for the modified rights. New values must be assigned to all the rights specified in <Rights to modify> (in the same order).
If a single value is indicated in this parameter, it will be assigned to all the rights specified in <Rights to modify>.
The possible values are as follows:
hAllowedThe relevant rights are granted to the user or group.
hForbiddenThe relevant rights are not granted to the user or group.
hInheritThe user will inherit from the value of the rights granted to the group to which he belongs.
<Database>: Cadena de caracteres
Name of the database for which the rights must be modified.
Observaciones

When are rights changed?

The change is effective as soon as <Variable Connection>.ModifyDatabaseRights is run. There is no need to restart the server to take the new rights into account.
Managing duplicates and integrity: The error does not occur when the management mode is modified but when an attempt is made not to comply with the integrity constraint (or with the duplicate constraint).
Componente: wd290hf.dll
Versión mínima requerida
  • Versión 25
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 20/06/2023

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