Grant system privileges and object-level privileges to UserA.
Prérequis
This lesson assumes that you have completed all previous lessons in this tutorial. See Lesson 1: Create two users: UserA and UserB (SQL).
In Interactive SQL, execute the following statement to grant the BACKUP DATABASE and VALIDATE ANY OBJECT system privileges to UserA:
GRANT BACKUP DATABASE, VALIDATE ANY OBJECT TO UserA; |
Execute the following statement to grant SELECT and UPDATE object-level privileges on the Employees table to UserA, with administration rights:
GRANT SELECT, UPDATE ON GROUPO.EMPLOYEES TO UserA WITH GRANT OPTION; |
This allows UserA to select from, and update, the Employees table. UserA can also grant the ability to select and update from the Employees table to other users.
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |