1
I need to generate a file XML
of a table of 500,000 rows and 200 columns using ADQuery
of FireDAC
and TClientDataSet
recording with
ClientDataSet.SaveToFile(Arquivo).
I need to record with the ClientDataSet
to remain the same structure of 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 occurs insufficient memory error.
How could I record this file? How could I record the ClientDataSet
in multiple files?
Thank you for your @Jrudolf tip, but in the same way it burst the memory. I split Query into smaller selects and smaller file recordings.
– leogregianin