Inspired by the xml data dump stackoverflows makes I wondered how to make them myself. I use the same tooling as they do (SqlServer and C#) but when the tables are so big I guess you wouldn't do a 'select * from questions' and iterate over it while writing it to xml via an XMLWriter class.
+3
A:
Why not? There is probably some processing involved to cleanse the data. Still an XmlWriter
can stream the output to the disk without having to hold the full dataset in memory (like an XmlSerializer approach would have to).
David Schmitt
2009-06-17 10:20:05
Indeed, XmlWriter would be one of the fastest ways (if not the fastest of all) to serialize XML data.
0xA3
2009-06-17 10:28:34
+1
A:
And like the XMLWriter doesn't need to hold the full dataset neither does your application or the sql server. A forward-only cursor will do.
VolkerK
2009-06-17 10:31:20