更新兼容性级别-Azure SSAS

时间:2019-03-20 01:38:50

标签: sql-server azure ssas upgrade tabular

我需要将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/

我的解决方案也在Source Control中。

2 个答案:

答案 0 :(得分:0)

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。如果未列出所需的兼容性级别,那么您很不幸。

答案 1 :(得分:0)

您当然只能更改为SupportedCompatibilityLevels。​​

@tukan谢谢。我在Visual Studio中更改为1400,然后在服务器中看到1400。 <ddl600:SupportedCompatibilityLevels>1100,1103,1200,1400</ddl600:SupportedCompatibilityLevels>

但是,当我尝试部署时,出现以下错误:
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。