Connect to a Microsoft Azure SQL Database

  1. In the POWER QUERY ribbon tab, click From Database > From Microsoft Azure SQL Database.
  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:

  1. Log into your Microsoft Azure account.
  2. In the Microsoft Azure SQL DATABASES page, click your database.
  3. In the page for your database, in the quick glance pane, click Manage allowed IP addresses.
  4. 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