Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Location
    Bucharest, Romania
    Posts
    17

    Unanswered: Retrieving User/Role Privileges - How ?

    Hi,

    I need to read and subsequently modify the privileges (rights) of a certain SQL Server user / role from within a Visual Basic Program.

    Modifying seems to be easy using standard statements like GRANT/REVOKE. But what about reading all the rights a user has ?

    I have researched SQL-DMO, but didn't find what I'm looking for.

    Any idea ?

    Mike

  2. #2
    Join Date
    Dec 2003
    Location
    Lowlands
    Posts
    53
    Try the next command in query analyzer
    sp_helprotect null, 'username' to get the rights
    and
    sp_helpuser to get the roles of an user
    If Perfection really is an Illusion. Then I want to get as close as possible to that Illusion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •