Connect to a Microsoft Azure SQL Database (Power Query)

Important   This article applies to Power Query, a data analysis feature available for Excel that lets you discover, combine and refine data. You may need to enable Power Query in Excel. You can also download and install the most recent version of Power Query for Excel, which automatically enables it. Power Query technology is also built into the Power BI Designer, which is a stand-alone report authoring and data transformation tool for Power BI.

  1. In the POWER QUERY ribbon tab, select From Azure > From Microsoft Azure SQL Database.

    Get external data from Azure
  2. In the Microsoft SQL Database dialog box, specify the Microsoft Azure SQL Database server to connect to in the Server Name box.

  3. If you want to import data using native database query, specify your query in the SQL Statement box. For more information, see Import Data from Database using Native Database Query.

  4. Click OK.

  5. In the Access a Microsoft SQL Database dialog box, enter your username and password.

  6. By default, the Encrypt connection check box is selected to signify that Power Query connects to your Microsoft Azure database using an encrypted connection. If you do not want to connect using an encrypted connection, clear this check box, and then click Save.

    If a connection to your SQL Server is not established using an encrypted connection, Power Query prompts you to connect using an unencrypted connection. Click OK in the message to connect using an unencrypted connection.

    Note    Before connecting to a Microsoft Azure SQL Database server, you need to allow your IP address to access the database though the Microsoft Azure firewall.

    To allow your IP address:

  7. Log into your Microsoft Azure account.

  8. In the Microsoft AzureSQL DATABASESpage, click your database.

  9. In the page for your database, in the quick glance pane, click Manage allowed IP addresses.

  10. In the Allowed IP Addresses section, click ADD TO ALLOWED IP ADDRESSES to allow your IP address to access the database though the firewall.

Related Topics

Import data from external data sources

Applies To: Excel 2013, Excel 2010



Was this information helpful?

Yes No

How can we improve it?

255 characters remaining

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!

Support resources

Change language