SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a application to export Large Lists to csv in 2007 where the threshold is 2000 items. What is the best approach? i need to export 1.000.000 items in the end. I know when you delete items you can use batches is this possible by retrieving data as well?

Or should i use the portalsitemap provider or...

share|improve this question
Sigs are discouraged here, see – Ryan Apr 2 '12 at 9:06

If you just want to read through all the items once the portalsitemap provider is not going to help you.

The easist is just to read the items using an SPQuery + SPList.GetItems using SPListItemCollectionPosition to do paging.

I'd sort the items by ID so they can't move while you're reading

share|improve this answer
thank you for your reply i am going to look into that.Paul Keijzers @KbWorks – KbWorks Apr 2 '12 at 6:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.