|
|
|
|
|
HModifyDatabaseRights (Function) In french: HModifieDroitBaseDeDonnées
Available only with this kind of connection
Sets the rights granted to a user or group for an HFSQL Client/Server database. Remark: it is possible to find out the rights of a group or a user on an HFSQL Client/Server database using the HInfoDatabaseRights function..
sDroits is string
sDroits = HInfoDatabaseRights(MaConnexion, "Dupont", hRightsRead + hRightsInsert, "MaBase")
HModifyDatabaseRights(MaConnexion, "Durand", hRightsRead + hRightsInsert, sDroits, "MaBase")
Syntax
<Result> = HModifyDatabaseRights(<Connection> , <User or group> , <Rights to modify> , <New values> , <Database>)
<Result>: Boolean - 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.Note: An "Unknown user" or "Unknown group" error will be returned by function HErrorInfo if the current user does not have user view rights (constant hRightViewUser) and requests information about another user or group.
<Connection>: Character string or Connection variable Connection for which the rights granted to a user or group of users should be modified. This connection corresponds to: <User or group>: Character string Name of the user or group whose rights should be modified. <Rights to modify>: Integer constant (or combination of constants) List of rights to modify: | | hRightsAutoModif | Rights to perform the automatic data file modification on a data file. | hRightsBackup | Rights to perform a backup. | hRightsChangeLink | Rights to change the integrity rules of a data file. | hRightsChangeOwner | Rights to change the owner of an element. | hRightsChangeRights | Rights to change rights. | hRightsConnection | Rights to connect to a server (encrypted or unencrypted connection). | hRightsCreateFile | Rights to create a data file (with HCreation). | hRightsCreateView | Rights to create an SQL view or a materialized view. | hRightsDebug | Rights to debug stored procedures. | hRightsDelete | Rights to delete the records from a data file. | hRightsDeleteDB | Rights to delete a database. | hRightsDeleteFile | Rights to delete a data file (HDeleteFile). | hRightsDeleteView | Rights to delete a view. | hRightsEncryptedConnection | Rights to connect to a server (encrypted connection only). | hRightsInsert | Rights to add records to a data file. | hRightsLock | Rights to lock the data files or the records of a data file. | hRightsMaintenance | Rights to start a re-index operation or to perform statistical calculations on a data file. | hRightsManageDuplicate | Rights to enable and disable the management of duplicates. | hRightsManageIntegrity | Rights to enable and disable the management of integrity. | hRightsManageProcedure | Rights to add, modify and delete the sets of procedures. | hRightsManageTrigger | Rights to add, enable and delete server triggers. | hRightsNoDatabaseAccess | Rights to prevent access to a database (HNoDatabaseAccess and HEndNoDatabaseAccess). | hRightsRead | Rights to read the records of a data file. | hRightsRunProcedure | Rights to run a stored procedure. | hRightsUnmask | Rights to unmask items in the database files. | hRightsUpdate | Rights to modify the records of a data file. |
<New values>: Integer constants 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: | | hAllowed | The relevant rights are granted to the user or group. | hForbidden | The relevant rights are not granted to the user or group. | hInherit | The user will inherit the right granted to the group to which they belong. |
<Database>: Character string Name of the database for which the rights should be modified. Remarks When are rights changed? Rights are modified when HModifyDatabaseRights is run. There is no need to restart the server to apply the new rights. Duplicate and integrity management: The right error appears not when the management mode is changed, but when an attempt is made to violate the integrity constraint (or duplicates).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|