Active directory users into the Sql Server Table

saidev

Active member
Joined
Dec 22, 2005
Messages
27
Programming Experience
1-3
Hi Guys,

We have a set of users in our active directory. I want to take the 2 fields(Username and EmployeeNumber) for all the users in the Active Directory and dump into the Sql Server Table. Can you guys help me with the VB.NET Code? I have been searching the google but couldn't find any. Appreciate your help. Thanks
 
Have a look on mesanderson.Co.uk
There is an entry about syncing ad and SharePoint users. Although a different problem solved, the code sample will show you how to extract from ad, just add a SQL insert into the loop to add them to a table. I know its lazy to redirect you, just saves me rewriting code samples.

Sent from my XT910 using Tapatalk 2
 
Have a look on mesanderson.Co.uk
There is an entry about syncing ad and SharePoint users. Although a different problem solved, the code sample will show you how to extract from ad, just add a SQL insert into the loop to add them to a table. I know its lazy to redirect you, just saves me rewriting code samples.

Sent from my XT910 using Tapatalk 2


Now I am on a PC rather than mobile here is link: The Curve » Sync Active Directory with SharePoint Foundation 2010
Look for the subheader, connecting to active directory with vb.net
 
Back
Top