Re: General permission question
- From: "Dan Guzman" <guzmanda@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 18 Dec 2007 07:18:58 -0600
My explanation for this is that SQL Server 2005 uses "most restrictive
permissions win". Is this accurate?
This is not exactly correct. Database permissions are cumulative except that DENY takes precedence over GRANT.
The account establish security credentials before database permissions can be evaluated, . If the account is a member of a Windows group that is a sysadmin server role member, then the account connects with sysadmin rights. In other cases where the access is via Windows group membership and the account is a member of multiple domain groups, I believe SQL Server uses only the first group for security credentials. You might try executing xp_logininfo to see if the permission path displayed matches your observations.
Personally, I don't grant permissions directly to Windows groups. Instead, I grant permissions only to database roles and control permissions via role database role membership.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Snowmizer" <Snowmizer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:E734951E-921A-4760-98B9-45497F835A6A@xxxxxxxxxxxxxxxx
Here's my scenario:
I have a user in my Active Directory. This user is a part of two different
groups in AD. These AD groups have a logon in my SQL Server 2005 database.
These two groups both have rights to a particular table in my database. One
group has select only rights and the other has select, insert, update rights
on the same table.
I have an application that is accessing this table (updating data in the
table). When my user tries to run this application they are getting a message
that they don't have "Update" permissions on the table. This despite the fact
that even though they are a member of the group that only has select
permissions they are also a member of the group that has select, insert, and
update permissions.
I also have this same scenario on my SQL Server 2000 database and things
work fine.
My explanation for this is that SQL Server 2005 uses "most restrictive
permissions win". Is this accurate?
Thanks.
.
- Prev by Date: Re: NT Authority\networkservice failed to connect
- Next by Date: Re: Couple Issues Relating to SQL Server Security/Login
- Previous by thread: Re: General permission question
- Next by thread: Re: Couple Issues Relating to SQL Server Security/Login
- Index(es):
Relevant Pages
|
|