Saving a huge dataset into SQL table in a XML column - MS SQL, C#.Net
- by NLV
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