SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 new database
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

aidmondo
Starting Member

Ghana
23 Posts

Posted - 04/21/2013 :  03:55:40  Show Profile  Reply with Quote
Create a table consisting of the details of all the users in my servers active directory

aidmondo

James K
Flowing Fount of Yak Knowledge

3334 Posts

Posted - 04/21/2013 :  07:54:29  Show Profile  Reply with Quote
Couple of different ways you could do this:

1. Set up a linked server to AD and query and populate the database. Google "sql server ldap query" and you will find many tutorials and examples on how to do this.

2. The newer and probably the more robust approach would be to use Powershell scripts to query AD and push the data to SQL Server.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 04/22/2013 :  01:26:01  Show Profile  Reply with Quote
you can write a LDAP query for that

http://www.pawlowski.cz/2011/04/querying-active-directory-sql-server-t-sql/

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000