Finding role IDs and names  Displaying a role hierarchy

Chapter 14: Managing Adaptive Server Logins, Database Users, and Client Connections

Viewing active roles

Use show_role to display the currently active system roles for the specified login:

show_role()

If you have not activated any system role, show_role returns NULL. If you are a Database Owner, and you execute show_role after using setuser to impersonate another user, show_role returns your own active system roles, not those for whom you are impersonating.

Any user can execute show_role.

NoteThe show_role function does not give information about user-defined roles.





Copyright © 2005. Sybase Inc. All rights reserved. Displaying a role hierarchy

View this book as PDF