Solved

MSSQL -- Active Directory details

Posted on 2013-01-25
2
290 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
2 Comments
 
LVL 76

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

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now