Re: Set up permissions for developers
- From: "Matt Brunell" <matt@xxxxxxxxxxxxx>
- Date: Tue, 18 Sep 2007 11:07:46 -0500
Be careful with the dbcreator role. It allows its members to create and drop any database. If you don't want the developers to drop others' databases, you will have to create a specific permission to do so. In sql 2000, I think it is "CREATE DATABASE" Also, since there are no non-fixed server roles, you would have to use a windows group, and windows authentication to apply a permission like that to a set of changing users.
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message news:Xns99AFDDE21E8Yazorman@xxxxxxxxxxxx
Dave Vick (dsvick@xxxxxxxxx) writes:We have a couple of different levels of people that have need to
access our SQL Server 2000 instance. What I would like to do is set up
a Developer role and give everyone in that role read - write access to
a specific set of databases on the server. In addition they would need
to be able to create new DBs. I see that I can add a new role with
sp_AddRole, but from what I can see and have read it has to be done
once for each database. I'd like to create the role, set the
permissions on it and just add the users to it. Or is there a better
way to do this?
Maybe. Maybe not. Probably not.
Normally you add database permissions per database. You can create a role,
add users to that role and add that role to db_datawriter and db_datareader.
The only thing you can do on server level is do this work in the model
database. Then all new databases on the server will get these users,
roles and permissions. Which is maybe not what you want. And top on of
that users would be able to change model.
A better alternative is to package the whole thing in a script that the
users can run in their newly created database.
One thing you can do server level: you can add them to the dbcreator fixed
server role to permit them to create databases.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Set up permissions for developers
- From: Dave Vick
- Re: Set up permissions for developers
- From: Erland Sommarskog
- Set up permissions for developers
- Prev by Date: Re: Set up permissions for developers
- Next by Date: Re: NT Authority\system
- Previous by thread: Re: Set up permissions for developers
- Next by thread: "Request new Certificate" does not appear in mmc
- Index(es):
Relevant Pages
|
|