User Access Management Process exercise

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aliceinhell
    New Member
    • Apr 2015
    • 1

    User Access Management Process exercise

    I know that users can be given permission to access the database to select data from database as shown below. But doing this for each user in the user table would take ages.. is there any method i could do this for all users in the user table

    I want to give all of them roles to allow them to read certain tables only.. any ideas how this can be done.. but i dont want to do one user at a time i want to do the whole user table

    CREATE LOGIN sam
    WITH PASSWORD = '';
    USE AdventureWorks;
    CREATE USER sam FOR LOGIN sam;
    GO
    GRANT SELECT TO sam
    Last edited by aliceinhell; Apr 6 '15, 06:05 AM.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    What have you tried so far?

    Comment

    Working...