Andrea Allred presents RoyalSQL

Bringing happy endings to all your data stories.

Tag Archives: Active Directory

August 5, 2013 by andreaallred

The Fairytale girl’s in deep distress and had to query Active Directory

This is just a quick post about a simple why to find out what members are in an Active directory group.

EXEC master.dbo.xp_logininfo'MyDomain\MyGroup','members'

This will tell you what groups a user is in:

EXEC  master.dbo.xp_logininfo‘MyDomain\MyUser’,‘all’

Posted in Awesome T-SQL
Tagged Active Directory, members, T-SQL
3 Comments

Post navigation

  • Pictures -Taken by Magic Mirrors
  • About the Royals
  • Playlist
  • SQL Server 2016 Discovery Day – SLC

News From The Kingdom

  • They say you know it when you know it, and I know…
  • You are the partition that won’t ever lapse…
  • I tried to Move SSISDB, It Hit Me So Hard, How Can It Be This Heavy?
  • Everything turns around when QueryStore comes around…
  • You’re still the oxygen I breathe, I see your face when I close my eyes…

Enter your email address to follow this blog and receive notifications of new posts by email.

Find Your Data Story

Royals Magic

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Blog at WordPress.com.
  • Subscribe Subscribed
    • Andrea Allred presents RoyalSQL
    • Join 223 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Andrea Allred presents RoyalSQL
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar