【问题标题】:Update compatibility level - Azure SSAS更新兼容性级别 - Azure SSAS
【发布时间】:2019-03-20 01:38:49
【问题描述】:

我需要将 Azure SSAS 模型的兼容级别更新为 1400。目前为 1200。当我单击 Model.bim 并转到属性时。 (在 Visual Studio 2017 中)“兼容性级别”属性下没有可供选择的选项。

我目前正在使用 VS 2017(版本 15.9.9)

.NET Framework 已启用(版本 4.7.03062)

我确实关注了这篇文章,但仍然没有看到更改它的选项。 https://azure.microsoft.com/en-au/blog/1400-models-in-azure-as/

我的解决方案也在源代码管理中。

【问题讨论】:

标签: sql-server azure ssas upgrade tabular


【解决方案1】:

SSMS 中 SSAS 的服务器属性实际上存在一个错误(至少从 SSMS 17.x 开始)。它可能也适用于您的情况。

您的模型使用的实际兼容模式是在模型本身中设置的。 服务器有 2 个属性:

  • DefaultCompatibilityMode - 可能仅在执行 Create 时使用(不兼容)
  • SupportCompatibilityModes 这是支持级别的列表。

在 SSMS 中执行以下XMLA 窗口(取自 social.msdn):

<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
    <RequestType>DISCOVER_XML_METADATA</RequestType>
    <Restrictions>
<RestrictionList>
<ObjectExpansion>ObjectProperties</ObjectExpansion>
</RestrictionList>
    </Restrictions>
    <Properties>
<PropertyList>
    </PropertyList>
    </Properties>
</Discover>

搜索兼容性。您应该能够看到 SSAS 2017 服务器:

<ddl400:DefaultCompatibilityLevel>1200</ddl400:DefaultCompatibilityLevel>
<ddl600:SupportedCompatibilityLevels>1100,1103,1200,1400</ddl600:SupportedCompatibilityLevels>

DefaultCompatibilityLevel 应与请求的兼容级别匹配。在您的情况下 1400。您应该能够通过在 SSMS 中检查模型的属性来确认模型正在运行的模式。当然,您只能更改为SupportedCompatibilityLevels。如果没有列出您所需的兼容性级别,那么您就很不走运了。

【讨论】:

    【解决方案2】:

    当然,您可以只更改为 SupportedCompatibilityLevels。​​

    @tukan 谢谢。我在 Visual Studio 中更改为 1400,我可以在服务器中看到 1400。 &lt;ddl600:SupportedCompatibilityLevels&gt;1100,1103,1200,1400&lt;/ddl600:SupportedCompatibilityLevels&gt;

    但是,当我尝试部署时,出现以下错误:
    The JSON DDL request failed with the following error: Failed to execute XMLA. Error returned: 'The operation cannot be performed because it references an object or property that is unavailable in the current edition of the server or the compatibility level of the database.

    感觉等级是1200,即使支持也部署不了1400。

    【讨论】:

      猜你喜欢
      • 2015-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-13
      • 1970-01-01
      • 1970-01-01
      • 2017-04-06
      • 1970-01-01
      相关资源
      最近更新 更多