sql-server - 分析服务连接被远程主机关闭(Azure SQL 数据库)

标签 sql-server azure azure-sql-database ssas

尝试从 Azure SQL 数据库加载 Analysis Service 中的 FACT 表(约 15M 行)时,我总是在一小时后收到此错误:

Failed to save modifications to the server. Error returned: 'A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.);An existing connection was forcibly closed by the remote host. The exception was raised by the IDataReader interface.

我似乎找不到更改 Azure SQL Server 超时的设置...有人知道我在哪里可以找到它吗?

最佳答案

超时可能是在 SSAS 端而不是 Azure SQL 数据库上设置的吗?

如果您使用现代的“获取数据体验 (Power Query)”,请查看此线程:

SSAS tabular model timeout raised during processing

要检查这一点,请通过单击 Model.bim 打开模型源代码,然后按 F7 并搜索关键字“timeout”。

目标是找到这样的东西:

"options": {
          "commandTimeout": "PT1H"
        },

Source = Sql.Database("serverName.database.windows.net","databaseName",
[CommandTimeout=#duration(0, 2, 0, 0)])

关于sql-server - 分析服务连接被远程主机关闭(Azure SQL 数据库),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54475553/

相关文章:

azure - ReplaceDocumentAsync without Document 可能吗?

Azure:如何将数据库移至弹性池

sql - 旋转两列,保持表中的其他列不变

c# - SQL Server TDE 和 LINQ

sql-server - Pymssql 写入服务器失败 - 20006

azure - 如何在没有部署 list 文件的情况下确定 IoT Edge 上不同模块之间的数据流

sql-server - SQL Azure "The database XXX is not accessible"

database - 将 Azure 上的数据库数据复制到 Azure 上的另一个数据库中

python - pymssql连接不返回数据,只打印列名?

sql-server - 从 SQL Management Studio 查询 Access 数据库,无需使用链接服务器