Solved

MSSQL -- Active Directory details

Posted on 2013-01-25
2
303 Views
Last Modified: 2013-02-07
How can I do something like the below in MSSQL to get Active Directory details ?

select AD_GROUP_NAME
from AD
where USER_NAME = 'JOHNDOE"
and substr(AD_GROUP_NAME,1,2) = 'PS'
0
Comment
Question by:finance_teacher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 78

Assisted Solution

by:arnold
arnold earned 250 total points
ID: 38821647
0
 
LVL 51

Accepted Solution

by:
Mark Wills earned 250 total points
ID: 38821711
There are a number of ways to do it...

Please see the MS KB Article : http://support.microsoft.com/kb/299410

Now, you can easily get into a bit of trouble with permissions and having access. So, make sure your SQl Server Service account (ie the account used to start the service) does have the appropriate permissions and not just "local"

Have a look at the last page of : http://www.sqlservercentral.com/Forums/Topic259587-8-3.aspx

Also, I used to use LDAP Browser to help with queries and find out schema etc - since upgraded to the paid for administrator : http://www.ldapbrowser.com/download.htm You might find it useful to resolve connections etc.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question