fixed server role

  • how to find the roles that were allotted to any user using query analyzer?thanks in advance

  • Hi,

    You are in 2000, right? Use sp_helpuser. If you use it 2005 it will not return information about securables introduced in 2005 but it will give all the group memberships.

    /Elisabeth

    elisabeth@sqlserverland.com
    MCITP | MCT
    http://sqlblog.com/blogs/elisabeth_redei/
    http://linkedin.com/in/elisabethredei

  • Hi Elisabeth,

    Thanks so much.

    Iam newbie.

    Can you tell me for displaying permissions(both user defined and predefined ) any procedure like sp_helpuser in query analyzer?

    Regards,

    MAnjula

  • Hi,

    If I understand your requirement correctly, you can use sp_helprotect; it is documented in Books Online.

    /Elisabeth

    elisabeth@sqlserverland.com
    MCITP | MCT
    http://sqlblog.com/blogs/elisabeth_redei/
    http://linkedin.com/in/elisabethredei

  • Hi Elisabeth,

    My requirement is "I want to display the users who have permissions of all roles inclusive server roles or database or userdefined roles."

    Thanks & Regards,

    MAnjula.

  • So you want to display users who are members of database and/or server roles? With the roles they are members of?

    You're not interested in permissions that users may have directly on objects?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Hi,

    Yes.i need the roles and permissions(on which objects).

    Pls correct me if iam wrong.

    Thanks,

    MAnjula

  • Ok, so you need the users, with their database and server roles and with the permissions that they have directly on database objects.

    One database or all?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Hi,

    All databases

    Thanks

    MAnjula

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply