无法使用ADOMD.Net和Power BI API数据源连接到远程SSAS多维数据集

时间:2019-07-28 22:14:17

标签: c# powerbi ssas adomd.net

我正在尝试通过ADOMD.Net连接并查询到SSAS多维数据集。但是,我无法打开与多维数据集的连接。我遇到了The connection was either timed out or lost的例外和The remote name could not be resolved: 'analysis.windows.net'的内在例外。我正在使用以下代码:

using (AdomdConnection connection = new AdomdConnection(connectionString))
{
    connection.Open();
    //Do work
    connection.Close();
}

我提供给ADOMD.Net的连接字符串是通过Power BI Web应用程序上的“在Excel中分析”功能提供的。该字符串类似于以下内容:

Provider=MSOLAP.8;Integrated Security=ClaimsToken;User ID=<<Username>>;Password=<<Password>>;Persist Security Info=True;Initial Catalog=sobe_wowvirtualserver-8d642345-a31b-56bc-2367-8fw57434e562;Data Source=https://analysis.windows.net/powerbi/api;Location="https://wabi-australia-southeast-redirect.analysis.windows.net/xmla?vs=sobe_wowvirtualserver&db=8d642345-a31b-56bc-2367-8fw57434e562";MDX Compatibility=1;Safety Options=2;MDX Missing Member Mode=Error;Update Isolation Level=2

我在openrowset查询中测试了此连接字符串,并成功返回了结果。

我注意到连接字符串中的数据源是API端点,我认为ADOMD.Net不支持作为API端点的数据源。

是否有一种方法可以使此连接字符串与ADOMD.Net或其他任何替代方法一起使用C#查询此多维数据集?

0 个答案:

没有答案
相关问题