Saving a huge dataset into SQL table in a XML column - MS SQL, C#.Net
Posted
by NLV
on Stack Overflow
See other posts from Stack Overflow
or by NLV
Published on 2010-04-19T07:01:33Z
Indexed on
2010/04/19
7:03 UTC
Read the original article
Hit count: 370
Hello all
I'm having a requirement where i've to save a dataset which has multiple tables in it in a sql table XML column by converting into an XML.
The problem is that in some cases the dataset grows extremely huge and i get OutOfMemoryException.
What i basically do is that i convert the dataset into an xml file and save it in the local disk and then load the XML again and send it as a stored procedure parameter. But when i write the dataset xml into the disk the file sizes over 700 Mb and when i load it in the XMLDocument object in memory i get OutOfMemoryException.
How can get the dataset xml without saving it in a file and re-reading it again?
Thank You
NLV
© Stack Overflow or respective owner