Solved

MSSQL -- Active Directory details

Posted on 2013-01-25
2
299 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

726 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