I need to generate an XML file from a table with 500.000 rows and 200 columns using Firedac Query and ClientDataSet to record ClientDataSet.SaveToFile.
ClientDataSet.Close;
Query.Sql.Clear;
Query.Sql.Add ("Select * from something");
ClientDataSet.Open;
ClientDataSet.SaveToFile("destination_folder.xml");
But to save the file with SaveToFile is the insufficient memory error.
How could I save this file? There is a way to write to multiple files the ClientDataSet already loaded?
Best regards.