Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Starting Member

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


James K
Flowing Fount of Yak Knowledge

3873 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

Very Important crosS Applying yaK Herder

52326 Posts

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

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000