Return members of an AD Group from SQL Server stopred proc? - xp_logininfo fails

I want to list the members of an AD group added as a user in SQL Server 2000 (or 2005).  xp_logininofo works like a champ for local NT group, but does not like the AD groups.

this works:
EXECUTE master.dbo.xp_logininfo 'myserver\RS_Management_Team', 'members'

this fails with error MSG 8198:
EXECUTE master.dbo.xp_logininfo 'mydomain\NOPHI', 'members'

change the \ to a / and it runs but returns no records.

According to this article on "It really can not get much more simple than that"\

I had a good sql admin query the members from this same AD group on this same server once, but I don't know how it was done.... with xp_logininfo or something else.  Our IT group has AD setup so we cannot query it directly.  Desperate for this, hope someone can help.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ted BouskillSenior Software DeveloperCommented:
What service account is SQL running under?  As a guess it would have to be a 'Network Service' and even then it might not work unless the SQL service is running as a domain account to query AD outside the local server.

Have you read this article?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
utmsa_MikeTAuthor Commented:
Thank you for responding.  The article was helpful.  I was not sure what type of account was running the service at first.  I have discovered my problem is related to the group scope of the AD group.  xp_logininfo is returing members for "Global" and the ones that fail are "Domain Local" which permit users from any trusted domain.  I'll post another question that's not as vague as this one was.  I really do appreciate your responding.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.