I need to generate a XML
file of a table of 500,000 rows and 200 columns using ADQuery
of FireDAC
and TClientDataSet
saving with
ClientDataSet.SaveToFile(Arquivo).
I need to write with ClientDataSet
to remain the same structure as XML
.
My code is:
ClientDataSet.Close;
Query.Sql.Clear;
Query.Sql.Add ("Select * from something");
ClientDataSet.Open;
ClientDataSet.SaveToFile("destination_folder.xml");
But when saving, insufficient memory error occurs.
How could I save this file? How could I write ClientDataSet
to multiple files?