How to Connect Desktop Excel to an Azure SQL Database
Question details
The user needs to establish a connection between desktop Excel and an Azure SQL Database to import and manage data.

- 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.
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.
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.
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'.
In the Data Connection Wizard window, choose the 'Other/Advanced' option from the list of data sources and click 'Next'.
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'.
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.

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.

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.




