This depends on what the procedure does with the dynamically created SQL statement. If it opens a cursor for the SQL text, then you can use a cursor variable. If it returns the SQL text, you can use it in a TOracleQuery or TOracleDataSet.
------------------
Marco Kalter
Allround Automations