Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Compare users in AD with an SQL table and insert the missing users

Reply
 
Old 10-22-2008   #1 (permalink)
novicew


 
 

Compare users in AD with an SQL table and insert the missing users

Is it possible to compare users in Active Directory with a SQL table
and insert the users who are missing in the table? Any suggestions on
this topic would be much appreciated.

TIA
Nov

My System SpecsSystem Spec
Old 10-22-2008   #2 (permalink)
Jason


 
 

Re: Compare users in AD with an SQL table and insert the missingusers

On Oct 22, 5:30 am, novi...@xxxxxx wrote:
Quote:

> Is it possible to compare users in Active Directory with a SQL table
> and insert the users who are missing in the table? Any suggestions on
> this topic would be much appreciated.
>
> TIA
> Nov
Sure is. There are a couple of different approaches using either VB
Script or pure SQL.

One method would be to loop through your AD records user by user. For
each user, test if exists in the table. If not, insert the user.
This would be the brute force VB script approach.

Another method would be to link Active Directory as a linked server to
SQL. http://articles.techrepublic.com.com...1-5259887.html
You could then write an Insert statement using the results from a SQL
query.
My System SpecsSystem Spec
Old 10-22-2008   #3 (permalink)
gimme_this_gimme_that


 
 

Re: Compare users in AD with an SQL table and insert the missingusers

Of course it's possible to do that. What database are you using?
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Help Run Dll C:\Users\ Users name\AppData\local\temp\axdeqxgo.dll Vista security
compare users in csv to AD PowerShell
Access All Users & Default Users Start menu Vista file management
C:\Users\all users\start menu - DENIED Vista file management
cant connect to my doccuments on \\domaincontroller\users\users sh Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46