You can capture query results by fetching the entire result set back to the client and binding it to local variables. Sending output results to a file may increase your time by requiring additional file I/O and operating system buffering.