Grant system privileges and object-level privileges to UserA.
Prerequisites
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.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |