I am trying to get IS_MEMBER working in a UDF in Sql Server 2005.
I have a windows group “Domain\TestGroup”.
I allocate my Login “Domain\Kieran” to it.
select SUSER_NAME();
gives “Domain\Kieran”
but
select IS_MEMBER(‘Domain\TestGroup’);
returns NULL.
Ah. I think I see the problem.
My login is in builtin\Administrators which is a member of the server fixed role sysadmin.
Therefore I’m a member of sysadmin, which means I’m dbo and won’t see any role or group information.