1. Yes the windows group has access. (It is SYSADMIN)
2. I first tried DROP LOGIN (even before sp_revokelogin), even that didn't
work as expected.
> 1. Yes the windows group has access. (It is SYSADMIN)
Since sysadmin role members are mapped to the dbo user in all databases, you
don't need to explicitly grant database access in that case. I assumed a
non-sysadmin login in my initial response.
> 2. I first tried DROP LOGIN (even before sp_revokelogin), even that didn't
> work as expected.
Both should provided the same functionality but sp_revokelogin is provided
only for backwards compatibility. Use CREATE/DROP for new development and
when you modify existing scripts.
Try running xp_logininfo for one on the group members to list all
permissions paths. Perhaps this will provide a clue as to what's going on.
For example:
EXEC xp_logininfo 'MyDomain\SomeUserAccount','all'

Signature
Hope this helps.
Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/
> 1. Yes the windows group has access. (It is SYSADMIN)
> 2. I first tried DROP LOGIN (even before sp_revokelogin), even that didn't
[quoted text clipped - 46 lines]
>> > access, REDMOND\john can still connect.
>> > --------------------------------------------------------------------------
Ravi Lobo - 25 Aug 2008 21:10 GMT
I tried,
EXEC xp_logininfo 'MyDomain\SomeUserAccount','all'
as well as
EXEC xp_logininfo 'MyDomain\SomeUserAccount','members'
the command lists the member users.
when I use DROP LOGIN and subsequently try to connect i get the folloiwng
error
-----------------------------------------------------------
can not open user default database. Login failed
-----------------------------------------------------------
This is a general message; You will get the same message when you try to
connect with the non-existing login.
Is there a work around?
> > 1. Yes the windows group has access. (It is SYSADMIN)
>
[quoted text clipped - 65 lines]
> >> > access, REDMOND\john can still connect.
> >> > --------------------------------------------------------------------------
Dan Guzman - 26 Aug 2008 12:51 GMT
>I tried,
> EXEC xp_logininfo 'MyDomain\SomeUserAccount','all'
> as well as
> EXEC xp_logininfo 'MyDomain\SomeUserAccount','members'
>
> the command lists the member users.
Try specifying a group member rather than the group. This should list the
Windows groups the user can connect with.
> -----------------------------------------------------------
> can not open user default database. Login failed
> -----------------------------------------------------------
>
> This is a general message; You will get the same message when you try to
> connect with the non-existing login.
I don't get this error on my server when the login doesn't exist. If I try
to connect with a Windows account that does not have a login, I get only
"login failed for user domain\user" (error number: 18456, Severity: 14,
State: 1).
What is the default database of the Windows group? Is that database
accessable?

Signature
Hope this helps.
Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/
>I tried,
> EXEC xp_logininfo 'MyDomain\SomeUserAccount','all'
[quoted text clipped - 94 lines]
>> >> > access, REDMOND\john can still connect.
>> >> > --------------------------------------------------------------------------