****** hnd = sqlstringconnect(...) =sqlsetprop(hnd, "transactions", 2) && manual transactions * the following is moved outside of the loop csql = "insert into table (field1, field2, field3, ...) " + ; "values (?localtable.field1, ?localtable.field2, ?localtable.field3, ...)" select localtable do while !eof() scan next 2000 && let fox count for you =sqlexec(hnd, csql) endscan =sqlcommit(hnd) enddo