Could it be that in your TOracleDataSet you've set the CountAllRecords to TRUE ? If so, then before the execution of the TOracleDataSet's SQL the "Select Count(*) from (TOracleDataSet.SQL)" is being executed. If your TOracleDataSet.SQL is something like "Select MySequence.NextVal From Dual" then...