Data Import & Export

How to Connect Desktop Excel to an Azure SQL Database

Steven ParkerSteven Parker Oct 21, 2026 869 views

Question details

The user needs to establish a connection between desktop Excel and an Azure SQL Database to import and manage data.

How to Connect Desktop Excel to an Azure SQL Database
Product
Desktop Excel
Device & OS
not provided
Scenario
Importing and refreshing live data from an Azure SQL Database into an Excel spreadsheet for analysis.
Observed behavior
The goal is to successfully configure the database connection and authenticate using desktop Excel's built-in data connection tools, bypassing the limitations of Excel for the web.
Before you start

Ensure you have your exact Azure SQL Server name, the target database name, and valid authentication credentials (such as your SQL or Microsoft Entra ID username and password) ready before setting up the connection.

Solution 1Recommended

Use the Data Connection Wizard in Desktop Excel

This is the standard and most reliable method to connect desktop Excel to an Azure SQL Database, allowing you to import and refresh data seamlessly.

Excel for the web has limited capabilities for direct database connections. Using the desktop version of Excel ensures you have access to the full suite of OLE DB and SQL Server Native Client drivers required for a secure Azure SQL connection.

1
Open the Data Connection Wizard

Launch desktop Excel and open a new or existing workbook. Navigate to the 'Data' tab on the top ribbon, click on 'Get Data' or 'From Other Sources' (depending on your Excel version), and select 'From Data Connection Wizard'.

2
Select the Advanced Data Source

In the Data Connection Wizard window, choose the 'Other/Advanced' option from the list of data sources and click 'Next'.

3
Choose the SQL Server Provider

A Data Link Properties dialog box will appear. Under the 'Provider' tab, select a suitable SQL Server provider, such as 'SQL Server Native Client 11.0', and click 'Next'.

4
Enter Azure SQL Connection Details

In the 'Connection' tab, enter your Azure SQL server name. Select the appropriate authentication method and input your username and password. Finally, select the specific database you wish to connect to from the dropdown menu and click 'OK' to establish the connection.

Use the Data Connection Wizard in Desktop Excel
Test Connection: You can click the 'Test Connection' button in the Data Link Properties window before clicking OK to ensure your credentials and server address are correct.
Free Microsoft Office alternative

Looking for a Free, Lightweight Office Alternative?

While advanced Azure SQL integrations are heavily tied to the Microsoft ecosystem, WPS Office provides a powerful, free, and lightweight alternative for your everyday spreadsheet, document, and presentation needs. Enjoy familiar interfaces and robust data processing without the heavy subscription fees.

Completely free and lightweight Office suiteSeamless compatibility with Microsoft Excel (.xlsx, .csv) formatsFamiliar user interface ensuring a zero-learning-curve migrationRich built-in formulas, pivot tables, and data visualization tools
microsoft office alternative - wps office

Frequently Asked Questions

Can I use Excel for the web to connect to Azure SQL Database?

No, Excel for the web currently has limited support for direct, live connections to external databases like Azure SQL. You must use the desktop version of Excel to utilize the Data Connection Wizard and appropriate SQL drivers.

Can I write data back from desktop Excel to my Azure SQL Database?

By default, the standard data connection established via the Data Connection Wizard in Excel is read-only, meant for importing and refreshing data. Writing data back to the database requires custom VBA scripts, third-party add-ins, or utilizing tools like Microsoft Power Apps.

Which provider should I choose in the Data Link Properties window?

For Azure SQL Databases, it is generally recommended to select 'SQL Server Native Client 11.0' or the 'Microsoft OLE DB Driver for SQL Server' if installed. These providers offer the best compatibility and security features for cloud database connections.