Create a role that contains the privileges necessary to debug a procedure and correct any errors found during the debugging process, then grant that role to UserA. Make sure that UserA is granted administrative rights for the role, so that he can grant the role to, or revoke the role from, other users as necessary.
Prerequisites
This lesson assumes that you have completed all previous lessons in this tutorial. See Lesson 2: Grant privileges to UserA (SQL).
In Interactive SQL, execute the following statement to create the role:
CREATE ROLE DebugAndFix; |
Execute the following statement to grant the required system privileges to the role:
GRANT ALTER ANY OBJECT, DEBUG ANY PROCEDURE TO DebugAndFix; |
Execute the following statement to grant the new role to UserA, with administrative rights:
GRANT ROLE DebugAndFix TO UserA WITH ADMIN OPTION; |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |