Results 1 to 3 of 3

Thread: Server role and Database Role

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    22

    Server role and Database Role

    Can u explain me differenty between server role and database role?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Server role and Database Role

    I'm not sure that's what he was asking.

    In SQL Server, a server role is something like sysadmin, serveradmin, dbcreator, and others I cannot remember.

    A database role would be something like dbo (db owner), public roles, or any roles you create yourself.

    The difference is quite simple, server roles exist at the server level, so you can imagine them to be like administrators that can access any database in the server instance.

    A database role is limited to the database to which it has been specified.

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Server role and Database Role

    We use database roles to simply permission assignments in SQL Server.

    We create a DATABASE ROLE - give that role the specific objects and types of permissions needed.

    Then the system admins assign these roles to WINDOWS USERS. Actually the smarter admins assign the roles to WINDOWS GROUPS - further simplifying what can become a very intensive procedure. Obviously as users are added to the AD they are associated with the proper WINDOWS GROUPS...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

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



Click Here to Expand Forum to Full Width