Using COPY TO ARRAY, 10000 passes took 0.079; records in result = 5 Using SQL SELECT, 10000 passes took 0.508; records in result = 5 Using SQL SELECT to cursor, 10000 passes took 0.466; records in result = 5VFPA x64:
Using COPY TO ARRAY, 10000 passes took 0.086; records in result = 5 Using SQL SELECT, 10000 passes took 0.691; records in result = 5 Using SQL SELECT to cursor, 10000 passes took 0.634; records in result = 5That's with SET TALK OFF. SET TALK ON and it's heaps slower, with COPY TO ARRAY now slowest- e.g VFPA 32bit:
Using COPY TO ARRAY, 10000 passes took 1.865; records in result = 5 Using SQL SELECT, 10000 passes took 1.364; records in result = 5 Using SQL SELECT to cursor, 10000 passes took 1.403; records in result = 5SET EXCL also seems to make a slight difference, though that's hardly a surprise.