I see that you’re trying to export SQL data to Excel to avoid copy-pasting your very large data set into Excel.
You might be interested in learning how to export SQL data to Excel and update the export automatically (with any SQL database: MySQL, Microsoft SQL Server, PostgreSQL).
To export data from SQL to Excel, you need to follow 2 steps:
- Step 1: Connect Excel to your SQL database? (Microsoft SQL Server, MySQL, PostgreSQL...)
- Step 2: Import your SQL data into Excel
The result will be the list of tables you want to query data from your SQL database into Excel:
?
Step1: Connect Excel to an external data source: your SQL database
- Install An ODBC
- Install A Driver
- Avoid A Common Error
- Create a DSN
Step 2: Import your SQL data into Excel
- Click Where You Want Your Pivot Table
- Click Insert
- Click Pivot Table
- Click Use an external data source, then Choose Connection
- Click on the System DSN tab
- Select the DSN created in ODBC Manager
- Fill the requested username and password
- Avoid a Common Error
- Access The Microsoft Query Dialog Box
- Click on the arrow to see the list of tables in your database
- Select the table you want to query data from your SQL database into Excel
- Click on Return Data when you’re done with your selection
To update the export automatically, there are 2 additional steps:
- Create a Pivot Table with an external SQL data source
- Automate Your SQL Data Update In Excel With The GETPIVOTDATA Function
I’ve created a step-by-step tutorial about this whole process, from connecting Excel to SQL, up to having the whole thing automatically updated. You might find the detailed explanations and screenshots useful.