Re: xp_logininfo not working for some types of users
From: Sue Hoegemeier (Sue_H_at_nomail.please)
Date: 06/04/04
- Next message: Sue Hoegemeier: "Re: any way to do record login failures?"
- Previous message: Hari Prasad: "Re: identifying deadlock conditions"
- In reply to: Steve Z: "xp_logininfo not working for some types of users"
- Next in thread: Steve Z: "Re: xp_logininfo not working for some types of users"
- Reply: Steve Z: "Re: xp_logininfo not working for some types of users"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 03 Jun 2004 19:24:02 -0600
If you know what groups you need to check, you could use
IS_MEMBER to determine if the user is a member of that
windows group.
-Sue
On Wed, 2 Jun 2004 11:01:05 -0700, "Steve Z"
<szlamany@antarescomputing_no_spam.com> wrote:
>We use master..xp_logininfo to check if a user has access to the database. If no recordset is returned we determine that the user actually has no real windows access to the server or database.
>
>We do this in a SPROC that is used for returning "internal application" roles.
>
>We thought that since we were setting up a new user, we mine as well show the DBA folks if that user actually has access to the database.
>
>For users with specific (by username) access to the database, it works.
>
>For users that get access to the database via a Windows Group, it doesn't work - no recordset is returned.
- Next message: Sue Hoegemeier: "Re: any way to do record login failures?"
- Previous message: Hari Prasad: "Re: identifying deadlock conditions"
- In reply to: Steve Z: "xp_logininfo not working for some types of users"
- Next in thread: Steve Z: "Re: xp_logininfo not working for some types of users"
- Reply: Steve Z: "Re: xp_logininfo not working for some types of users"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|