Re: Which User account is used?



How does SQL Server decide which User account is used when this user
connects to the database?

You can check the actual permission path using xp_logininfo.

EXEC master..xp_logininfo 'MyDomain\GroupMember,'all'

The xp_logininfo documentation (http://msdn.microsoft.com/en-us/library/ms190369.aspx) implies that admin privilege Windows group membership takes precedence over non-admin group membership and that the earliest granted Windows group is the one used for ties.

--
Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

"kh" <kh@xxxxxxxxxxxxx> wrote in message news:4684D796-8E26-434B-BA9F-EAD2EB57759E@xxxxxxxxxxxxxxxx
Hi. In SQL Server 2005 with Windows Authentication mode activated, I have a
user who is a member of an AD group which has been assigned as a database
User, but this user's login has also been associated with another User
account directly.

How does SQL Server decide which User account is used when this user
connects to the database?

Thanks

.



Relevant Pages

  • Re: Managing SQL database rights using AD
    ... logins to SQL Server. ... You would add these two logins you ... just added as users in the database. ... the Windows group that you just added as logins (and then ...
    (microsoft.public.sqlserver.security)
  • Re: Group Already Exists
    ... including Windows-based users, in your database. ... I support the Professional Association for SQL Server ... HOw do I bring that Windows Group that already exists ...
    (microsoft.public.sqlserver.server)
  • Re: NT Autentication for Windows groups
    ... Create a database role for each group of users. ... easier to manage if the group of users were in a Windows Group. ... Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.server)
  • Re: via group membership
    ... > In EM,I've seen "via group membership" under the 'Database ... a default SQL Server 2000 install, ... sysadmin equivalence, anyone that has local administrative rights on the ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Server role members
    ... I create a windows group BAIWEI\testgroup, ... Then, in SQL Enterprise Manager, in the pubs database, I add this SQL ... specified Microsoft Windows NT group or Microsoft SQL Server role. ...
    (microsoft.public.sqlserver.security)

Quantcast