no that completely defeats the purpose
Main Topics
Browse All TopicsI am attempting to extract selected info from active directory for all users as a portion of an SSIS package. Initially I began with sql but ran into the pagesize limit (1000). After some searching I leaned that .net may be more appropriate due to its handing of pagesize. I really have little experience with .net but thought that perhaps it would be a decent learning experience.
The end goal is to produce a table containing domain(supplied by me in code), samaccountname,displayname
I believe that I will be able to manipulate lastlogin to be presented in a more usable format. I have been led to believe that description may be difficult to obtainparticularly for a newbie.
At any rate, I have located some code snippets that can produce all samaccountnames but I can not use it to obtain any of the other fields. I have commented out or removed some of it for brevity's sake. I know that using a linked server that an openquery will produce all fields except description as nvarchar. Yet in .net the compiler seems to expect department for instance as cint and when implemented yields a 0. (Granted my sql pull of 1000 records does produce nulls but cint?)
This has been a most confusing experience.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Not really. It doesn't defeat the purpose at all -- dont' reinvent what others have already done.
but if you must... follow in the footsteps of those that have been successful:
http://agilebi.com/cs/blog
I wouldn't do it the way you're attempting.
actually that solution is unneccessary since as I stated in the question a simple openquery will also pull 1000 rows using a linked server.the issue is going beyond 1000 rows which appears to require a higher level language. there some hokey solutions using alpha characters etc but they wind up being limited so unfortunately your 'solution' is not helpful.
Reinvent? Perhaps but can not buy a product.
And why not do it via .net? I can pull one column correctly for all records just can't figure out how to pull multiple columns. For instance I can easily pull samaccountname but not it and anything else. I am simply not advanced enough in .net. The description field also appears to be a problem.
Business Accounts
Answer for Membership
by: HwkrangerPosted on 2009-07-17 at 10:00:09ID: 24880508
how often do you need to do this?
om/KB/Data SyncStudio /Wiki/ Home .aspx
I use a tool for this... It's free for 30 days. Data Sync Design Studio
I hate dealing with LDAP/ActiveX/etc.. etc..
http://sharepoint.simego.c