Explanation
Excel’s Get Data tools can connect to supported SQL databases.
Typical process:
Data → Get Data → From Database → From SQL Server Database
Then provide:
- Server name
- Database name
- Authentication details
After connecting, select the required table or query.
You can choose:
Load or Transform Data
Example
Suppose SQL contains:
Sales
with:
|
OrderID |
Date |
CustomerID |
ProductID |
SalesAmount |
|
O101 |
01-Jan-26 |
C101 |
P101 |
120000 |
|
O102 |
05-Jan-26 |
C102 |
P102 |
5000 |
Import this data into Power Query and prepare it for reporting.
Practice
Create an Excel connection to a supported SQL database and import the Sales table.