Server Roles/Database Roles

Server Roles/Database Roles

Post by brian » Mon, 02 Sep 2002 11:58:28



Does anyone use server roles or database roles?
I see the purpose of application roles and very rarely
the use of database roles, but server roles seem useless.
Any thoughts?
 
 
 

Server Roles/Database Roles

Post by Bob Pfeiff [MS » Mon, 02 Sep 2002 13:02:09


Pretty involved question really.  Basically it depends on how people access
data.  Just about every application I've seen has some kind of way of
managing what people in different groups can do in a database.  Many of
these were custom developed with their own user information in the database,
some used groups in the SQL 6.x days, and a few (too few IMHO) use roles in
SQL Server 7.0 and 2000.

Database roles are a good way to abstract permissions to database objects,
so that you just have to assign specific permissions to roles and then
assign users to roles, this works well for both SQL Server logins and
Windows logins.  Application roles can serve a similar purpose, but are
different in that the users' permissions are only overridden when they use
the application that activates the application role.  There are issues with
application roles and connection pooling that have to be considered as well
(there are KB articles that cover this).

The fixed Server roles are a convenience, but one that might not be needed
in a shop with one, or a few multipurpose DBAs, but in a big data center, it
can make sense to break out adminstrative roles along the lines of the fixed
server roles.

The bottom line is to have a thorough understanding of access requirements
and to know exactly how people can get into your database server.

--
Bob
Microsoft Consulting Services
------
This posting is provided AS IS with no warranties, and confers no rights.

 
 
 

Server Roles/Database Roles

Post by brian » Mon, 02 Sep 2002 15:13:09


Thanks for the reply!

Quote:>-----Original Message-----
>Pretty involved question really.  Basically it depends

on how people access
Quote:>data.  Just about every application I've seen has some
kind of way of
>managing what people in different groups can do in a
database.  Many of
>these were custom developed with their own user

information in the database,
Quote:>some used groups in the SQL 6.x days, and a few (too few
IMHO) use roles in
>SQL Server 7.0 and 2000.

>Database roles are a good way to abstract permissions to
database objects,
>so that you just have to assign specific permissions to
roles and then
>assign users to roles, this works well for both SQL
Server logins and
>Windows logins.  Application roles can serve a similar
purpose, but are
>different in that the users' permissions are only

overridden when they use
Quote:>the application that activates the application role.  

There are issues with
Quote:>application roles and connection pooling that have to be
considered as well
>(there are KB articles that cover this).

>The fixed Server roles are a convenience, but one that
might not be needed
>in a shop with one, or a few multipurpose DBAs, but in a
big data center, it
>can make sense to break out adminstrative roles along

the lines of the fixed
Quote:>server roles.

>The bottom line is to have a thorough understanding of
access requirements
>and to know exactly how people can get into your
database server.

>--
>Bob
>Microsoft Consulting Services
>------
>This posting is provided AS IS with no warranties, and
confers no rights.

>.

 
 
 

1. User with server role / database role

HI,

SQL Server 7.0 SP4 with NT 4

Some of our developpers (and some end users) work with very privileged
account
with     Server Roles : System Administrator, etc....
and  Database Roles : db_owner, etc....

Most of our end users work with very low privileged account
with only Database Roles : public

My question is:
Does SQL Server is going to execute tasks of very privileged account before
the tasks of low privileged account ?  If yes, how can "see" it ? via
Profiler ?

Thank you

Danny

2. How can I create a MAPI mail profile?

3. Server Roles, Database Roles, Replication

4. problem with novell&paradox

5. Server Roles and Database Roles

6. Handling exceptions.....

7. diffence between Fixed server role and fixed database role

8. Show a value other then NULL

9. Database Role vs Cube Role

10. DSO created Cube roles not connected to the corresponding Database role

11. Application Roles and Server Roles

12. Roles Not Removed From Cube Roles Collection