简体   繁体   English

无法从 Excel 中的 Azure Sql 服务器获取数据

[英]Cannot get data from Azure Sql Server in Excel

I am trying to connect to azure sql server from my excel.我正在尝试从我的 excel 服务器连接到 azure sql 服务器。

However, I can only see Azure data explorer in the GetData -> Azure tab.但是,我只能在 GetData -> Azure 选项卡中看到 Azure 数据浏览器。

Unlike my other excel installed in a different computer, I cannot see any other azure services that I can get data from.与安装在另一台计算机上的其他 excel 不同,我看不到可以从中获取数据的任何其他 azure 服务。

I tried uninstalling and installing back to the lastest 2016 Excel but had no luck.我尝试卸载并安装回最新的 2016 Excel 但没有运气。

enter image description here在此处输入图像描述

Firstly, please reference this document: Connect Excel to a database in Azure SQL Database or Azure SQL Managed Instance, and create a report : Firstly, please reference this document: Connect Excel to a database in Azure SQL Database or Azure SQL Managed Instance, and create a report :

You can connect Excel to a database and then import data and create tables and charts based on values in the database. In this tutorial you will set up the connection between Excel and a database table, save the file that stores data and the connection information for Excel, and then create a pivot chart from the database values.

I use Excel 2016 and also don't have From Azure SQL Database :我使用 Excel 2016 并且也没有From Azure SQL 数据库 在此处输入图像描述

But Get Extra Data --> From Other Source --> From SQL Server also works with Azure SQL database.但是Get Extra Data --> From Other Source --> From SQL Server也适用于 Azure SQL 数据库。 For example, I get the table test5 data from my Azure SQL database:例如,我从我的 Azure SQL 数据库中获取表 test5 数据:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

Note: make sure you have added IP address to the firewall for your current computer.注意:确保您已将 IP 地址添加到当前计算机的防火墙中。

Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM