QueryToDoc - Version 1.2.2 Export Query Results to a Word Document. Use QueryToDoc to export Oracle and MS-SQL Query results to a Word Document. Write a SQL query against an Oracle or MS-SQL database, view the results, and then automatically export the query results to a table in a Word document.