This article will assist users in running a SQL query to gather data to place into Excel for further analysis, reporting, or processing. Using this method, you can export many different types of data into Excel assuming you have a valid SQL query and connection details. Please follow the general steps below to export data from your database query to Excel.
Note. You may have been provided a .SQL file or you may have the query text stashed elsewhere, it is up to you to identify the appropriate SQL query.
Note. This step is critical to prevent Excel from changing your data (like removing leading zeroes, treating dates as numbers, etc.).
You have now fully exported the SQL results into an Excel document for your further analysis, publishing, or reporting.