RESTRICTED_USER

  • Does someone has the query to find out all the RESTRICTED_USER for a given database.

     

     

     


    Kindest Regards,

    Amit Lohia

  • Not sure exactly what you mean?

    RESTRICTED_USED is a Property of a Database. When the DB is set as RESTRICTED_USER, only sysadmin,dbcreator and db_owner have access to it!

    hth

     


    * Noel

  • yeah I know that. What I meant was if someone has a query which will return all the users which are member of sysadmin,dbcreator and db_owner.

     


    Kindest Regards,

    Amit Lohia

  • exec sp_helprolemember @rolename = 'db_owner'

    exec sp_helpsrvrolmember @srvrolename ='sysadmin'

    exec sp_helpsrvrolmember @srvrolename ='dbcreator'

     


    * Noel

  • thank you. now I can customize them


    Kindest Regards,

    Amit Lohia

Viewing 5 posts - 1 through 4 (of 4 total)

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