The spool command is not a SQL command, so it cannot directly be used for the TOracleQuery component. You will have to create a Delphi function to process the query results and write them to a file.


Marco Kalter
Allround Automations