将PBI网站连接到Azure MSSQL

时间:2019-02-14 16:42:25

标签: sql-server azure azure-sql-database powerbi

我们有一些PowerBI报告以直接查询模式针对Azure MSSQL数据库运行。这些报告工作正常,并且在PowerBI Desktop中仍然可以正常工作。但是,当上传到Web时,其中一些报告(具有多个小部件的更复杂的报告)突然开始显示以下错误:

A network-related or instance-specific error occurred while establishing a
connection to SQL Server. The server was not found or was not accessible. Verify
that the instance name is correct and that SQL Server is configured to allow remote
connections. (provider: TCP Provider, error: 0 - A connection attempt failed
because the connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond.);A
connection attempt failed because the connected party did not properly respond after
a period of time, or established connection failed because connected host has
failed to respond. The exception was raised by the IDbConnection interface. Please
try again later or contact support.

PBI Desktop在相同的数据源设置下可以正常工作。使用mssql扩展名从VS Code连接到数据库也可以。

以前发生这种情况的唯一解决方案是停止所有修改数据库的进程,对其进行克隆,删除旧数据库,然后使用与旧数据库相同的名称重命名新数据库。不用说,这是不可扩展的。

有什么想法吗?

0 个答案:

没有答案