Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 sharepoint.stackexchange.com/faq#signatures –  Ryan Apr 2 '12 at 9:06
add comment

1 Answer 1

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.nl watisoffice365.nl –  KbWorks Apr 2 '12 at 6:00
add comment

Your Answer

 
discard

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.