Solved

sybase, how do we check what privileges granted or cover by role ?

Posted on 2013-06-19
2
1,433 Views
Last Modified: 2013-07-15
I have a following user which have been granted with user define role, but I have  difficulties to understands what is inside the role. Can someone tell me how do we check what is inside user_sa_role


1> sp_displayroles 'trwkry'
2>
 Role Name
 ------------------------------
 user_sa_role

1>
1> sp_displayroles 'user_sa_role','expand_up'
2>
 Role Name                      Parent Role Name               Level
 ------------------------------ ------------------------------ ------

(0 rows affected)
(return status = 0)
1>
1>
1>
1> sp_displayroles user_sa_role,'expand_down'
2>
 Role Name                      Parent Role Name               Level
 ------------------------------ ------------------------------ ------
 sa_role                        user_sa_role                        1
 sso_role                       user_sa_role                        1

(2 rows affected)
(return status = 0)
1>
1>
1>
1> sp_displayroles user_sa_role
2>
 Role Name
 ------------------------------
 sa_role
 sso_role

(2 rows affected)
(return status = 0)
1> sp_displayroles
2>
 Role Name
 ------------------------------
 sa_role
 sso_role
 oper_role
 mon_role

(4 rows affected)
(return status = 0)
1>
0
Comment
Question by:motioneye
2 Comments
 
LVL 13

Accepted Solution

by:
alpmoon earned 250 total points
ID: 39261317
I think you have received the information you needed. user_sa_role has been created to combine sa_role and sso_role. When you grant user_sa_role to a user, that user will have both sa_role and sso_role.
0
 
LVL 24

Assisted Solution

by:Joe Woodhouse
Joe Woodhouse earned 250 total points
ID: 39261670
The other part of the question is to run "sp_helprotect" to see what permissions the role is granting on objects. It won't show permissions to run commands though, which it is inheriting from the system roles.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
What is Backup? Backup software creates one or more copies of the data on your digital devices in case your original data is lost or damaged. Different backup solutions protect different kinds of data and different combinations of devices. For e…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now