Re: Schema as a security mechanism?
- From: "Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Apr 2007 15:55:06 -0500
From what I read, I found that schema is used as a container to group
database objects, rather than a security mechanism on its own. Role is a
grouping of db users for a purpose.
Than is correct. A schema is basically a namespace to facilitate grouping related database objects. A role is a group of users with similar security requirements.
So how can schema helps in security? I read something about defense in
depth, something like multiple level of security. Does schema by itself helps
security?
Schema can be used to implement custom security. For example, you could grant execute permissions on all stored procedures in the Sales schema with:
GRANT EXECUTE ON SCHEMA::Sales TO SalespersonRole
Can it replace role?
Schema are not intended to replace roles.
Lastly, with the question posed, 'why should be change from using role to
schema?', how should I answer this?
For the same sort of reason you should switch from using a hammer to a screwdriver. If you have a hammer in your hand and your target is a screw, it's time to switch.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Eugene" <Eugene@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:87513959-0819-4E1B-9A2B-129D997DEEBF@xxxxxxxxxxxxxxxx
Hi, I have a question regarding the new schema feature, and the existing
database roles. I have found quite some discussion on them in both msdn
newsgroups as well as articles for other websites.
Briefly, I got asked this question, why should we choose to use schema
instead of roles that we have been using all these years/
From what I read, I found that schema is used as a container to group
database objects, rather than a security mechanism on its own. Role is a
grouping of db users for a purpose.
So how can schema helps in security? I read something about defense in
depth, something like multiple level of security. Does schema by itself helps
security? Can it replace role?
Lastly, with the question posed, 'why should be change from using role to
schema?', how should I answer this?
thanks
Eugene
.
- Prev by Date: Re: Where did the connections come from?
- Next by Date: Re: SQL 2005 express blank sa passwords
- Previous by thread: Re: Where did the connections come from?
- Next by thread: Re: Schema as a security mechanism?
- Index(es):
Relevant Pages
|
|