Re: Yukon schemas
- From: Resquegal <Resquegal@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 15 Feb 2006 10:55:26 -0800
Thanks for the quick reply.
I was just doing some testing and I came the same conclusion - as long as I
don't grant them CREATE TABLE, they won't be able to do it, despite granting
ALTER to the schema. I shouldn't have made that assumption in the first
place. Anyway...
I'm glad to read your post and verify that my conclusions are correct.
Thanks again!
"Kalen Delaney" wrote:
.
Hi Resquegal
In SQL 2005, you have to grant create permission to perform the action
(CREATE PROC, CREATE VIEW) as well as the permission to affect the schema
that the new object will be in. If you give developers ALTER SCHEMA
permission, they will still not be able to create a table in that schema
unless you give them CREATE TABLE permission as well.
--
HTH
Kalen Delaney, SQL Server MVP
www.solidqualitylearning.com
"Resquegal" <Resquegal@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E1792F17-6939-4F5E-8D3E-43D1871712BC@xxxxxxxxxxxxxxxx
I am in the process of setting up security on our Yukon development
servers.
Thus far, I have added logins and created users within databases. Each
user
was given the db_datareader and db_datawriter roles. Each user also has
'dbo'
as the default schema. I created a database role in each database called
m_developer and I granted the role to each user. Then I granted 'create
procedure' and 'create view' to the role m_developer.
In SQL 2000, this was enough permissions to allow developers to add/update
data and to create and alter stored procedures and views that they owned.
In Yukon, however, this apparently is not enough permissions.
In order to allow developers to create stored procedures, I ended up
executing the following command:
Grant Alter on schema::dbo to m_developer
However, I believe that this now gives developers permission to not only
create and alter stored procedures and views but also tables etc... and
that
is what I was trying to prevent.
Is there a better way of doing this? Is there a way to grant 'Create
procedure' to a user or role and have it apply to any/all schemas without
having to grant permissions directly to the schema?
We'd like to stick to having developers use 'dbo' as the default schema.
Thanks for your advice!
- References:
- Re: Yukon schemas
- From: Kalen Delaney
- Re: Yukon schemas
- Prev by Date: Re: Yukon schemas
- Next by Date: Re: Yukon schemas
- Previous by thread: Re: Yukon schemas
- Next by thread: Re: Yukon schemas
- Index(es):
Relevant Pages
|
|