Link to home
Start Free TrialLog in
Avatar of duke63
duke63

asked on

Writing large xml file - memory issue

I have a large datatable in sql server 2000 with xml code for each row in ntext field.
(about 500000 rows) My normal strategy is to loop through the rows in batch sizes and add the xml elements to a xmldocument in memory and then do xmldocument.save.
In this case it runs out of ram.
Any suggestions how to split this process?
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of duke63
duke63

ASKER

OK, I'll give it a try. Think xmlwriter.flush is what I need.
Avatar of duke63

ASKER

Works great and fast, thanks!!