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

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 new database

Author  Topic 

aidmondo
Starting Member

23 Posts

Posted - 2013-04-21 : 03:55:40
Create a table consisting of the details of all the users in my servers active directory

aidmondo

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-04-21 : 07:54:29
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

52326 Posts

Posted - 2013-04-22 : 01:26:01
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
   

- Advertisement -