Connecting Excel or Power BI to SQL Server
Excel: Connect Using SQL Login
-
In Excel, go to the Data tab and select Get Data
-
Choose From Database → From SQL Server Database
-
In the SQL Server database dialog:
-
Server: enter your server name
Example:{mysqlserver}.database.windows.net -
Database (optional): enter your database name
Example:Access2ZoneDW
-
-
If prompted for authentication:
-
Choose Database
-
Enter your SQL credentials:
-
User name: your SQL login
-
Password: your password
-
-
-
Click Connect
-
You should now see available tables and views.
Excel: Connect Using Azure Entra ID (Microsoft Account)
-
In Excel, go to the Data tab and select Get Data
-
Choose From Database → From SQL Server Database
-
In the SQL Server database dialog:
-
Server: enter your server name
Example:{mysqlserver}.database.windows.net -
Database (optional): enter your database name
Example:Access2ZoneDW
-
-
If prompted for authentication:
-
Choose Microsoft Account
-
If you see a “You aren’t signed in” message, click Sign in
-
Choose your company account or sign in
-
-
Click Connect
-
You should now see available tables and views.
Power BI: Connect Using SQL Login
-
In Power BI, click Get Data
-
Select SQL Server
-
In the SQL Server database dialog:
-
Server: enter your server name
Example:{mysqlserver}.database.windows.net -
Database (optional): enter your database name
Example:Access2ZoneDW
-
-
If prompted for authentication:
-
Choose Database
-
Enter your SQL credentials:
-
User name: your SQL login
-
Password: your password
-
-
-
Click Connect
-
You should now see available tables and views.
Power BI: Connect Using Azure Entra ID (Microsoft Account)
-
In Power BI, click Get Data
-
Select SQL Server
-
In the SQL Server database dialog:
-
Server: enter your server name
Example:{mysqlserver}.database.windows.net -
Database (optional): enter your database name
Example:Access2ZoneDW -
-
-
If prompted for authentication:
-
Choose Microsoft Account
-
If you see a “You aren’t signed in” message, click Sign in
-
Choose your company account or sign in
-
-
-
Click Connect
-
You should now see available tables and views.